2022-04-13 09:48:18 +03:00
|
|
|
name: ElementX
|
|
|
|
|
2022-04-13 17:19:11 +03:00
|
|
|
schemes:
|
|
|
|
ElementX:
|
|
|
|
analyze:
|
|
|
|
config: Debug
|
|
|
|
archive:
|
|
|
|
config: Release
|
|
|
|
build:
|
|
|
|
targets:
|
|
|
|
ElementX:
|
|
|
|
- running
|
|
|
|
- testing
|
|
|
|
- profiling
|
|
|
|
- analyzing
|
|
|
|
- archiving
|
|
|
|
profile:
|
|
|
|
config: Release
|
|
|
|
run:
|
|
|
|
config: Debug
|
2022-11-25 15:46:50 +00:00
|
|
|
environmentVariables:
|
|
|
|
- variable: RUST_BACKTRACE
|
|
|
|
value: full
|
|
|
|
isEnabled: false
|
2022-11-29 09:36:19 +02:00
|
|
|
- variable: HTTPS_PROXY
|
|
|
|
value: 192.168.0.111:9090
|
|
|
|
isEnabled: false
|
2023-02-23 15:07:33 +00:00
|
|
|
- variable: UI_TESTS_SCREEN
|
|
|
|
value: ""
|
|
|
|
isEnabled: false
|
2022-04-13 17:19:11 +03:00
|
|
|
test:
|
|
|
|
config: Debug
|
2022-04-27 15:03:35 +03:00
|
|
|
gatherCoverageData: true
|
2022-04-29 12:23:27 +03:00
|
|
|
coverageTargets:
|
|
|
|
- ElementX
|
2022-04-13 17:19:11 +03:00
|
|
|
targets:
|
|
|
|
- UnitTests
|
2022-12-16 14:07:42 +02:00
|
|
|
environmentVariables:
|
|
|
|
IS_RUNNING_UNIT_TESTS: "1"
|
2022-04-13 17:19:11 +03:00
|
|
|
|
2022-04-13 09:48:18 +03:00
|
|
|
targets:
|
|
|
|
ElementX:
|
|
|
|
type: application
|
|
|
|
platform: iOS
|
|
|
|
|
|
|
|
info:
|
|
|
|
path: ../SupportingFiles/Info.plist
|
|
|
|
properties:
|
|
|
|
UILaunchStoryboardName: LaunchScreen
|
2022-10-14 14:44:41 +02:00
|
|
|
CFBundleDisplayName: $(PRODUCT_NAME)
|
2022-04-13 10:09:45 +03:00
|
|
|
CFBundleShortVersionString: $(MARKETING_VERSION)
|
|
|
|
CFBundleVersion: $(CURRENT_PROJECT_VERSION)
|
2022-05-16 13:17:41 +03:00
|
|
|
UISupportedInterfaceOrientations: [
|
|
|
|
UIInterfaceOrientationPortrait,
|
|
|
|
UIInterfaceOrientationPortraitUpsideDown,
|
|
|
|
UIInterfaceOrientationLandscapeLeft,
|
|
|
|
UIInterfaceOrientationLandscapeRight
|
|
|
|
]
|
2022-07-27 10:57:16 +01:00
|
|
|
appGroupIdentifier: $(APP_GROUP_IDENTIFIER)
|
2022-11-21 19:37:13 +03:00
|
|
|
baseBundleIdentifier: $(BASE_BUNDLE_IDENTIFIER)
|
2022-12-06 17:39:15 +00:00
|
|
|
keychainAccessGroupIdentifier: $(KEYCHAIN_ACCESS_GROUP_IDENTIFIER)
|
2022-10-24 16:00:17 +03:00
|
|
|
ITSAppUsesNonExemptEncryption: false
|
2022-11-21 19:37:13 +03:00
|
|
|
NSUserActivityTypes: [
|
|
|
|
INSendMessageIntent
|
|
|
|
]
|
2022-04-13 09:48:18 +03:00
|
|
|
|
|
|
|
settings:
|
|
|
|
base:
|
|
|
|
PRODUCT_NAME: ElementX
|
2022-10-24 16:00:17 +03:00
|
|
|
PRODUCT_BUNDLE_IDENTIFIER: $(BASE_BUNDLE_IDENTIFIER)
|
2022-11-21 19:37:13 +03:00
|
|
|
MARKETING_VERSION: $(MARKETING_VERSION)
|
|
|
|
CURRENT_PROJECT_VERSION: $(CURRENT_PROJECT_VERSION)
|
|
|
|
DEVELOPMENT_TEAM: $(DEVELOPMENT_TEAM)
|
2022-04-13 09:48:18 +03:00
|
|
|
CODE_SIGN_ENTITLEMENTS: ElementX/SupportingFiles/ElementX.entitlements
|
|
|
|
SWIFT_OBJC_BRIDGING_HEADER: ElementX/SupportingFiles/ElementX-Bridging-Header.h
|
2022-08-30 18:05:21 +03:00
|
|
|
SWIFT_OBJC_INTERFACE_HEADER_NAME: GeneratedInterface-Swift.h
|
2022-04-13 10:09:45 +03:00
|
|
|
|
2022-06-28 12:23:35 +01:00
|
|
|
preBuildScripts:
|
|
|
|
- name: 🛠 SwiftGen
|
2022-04-13 10:09:45 +03:00
|
|
|
runOnlyWhenInstalling: false
|
2022-10-17 09:56:17 +01:00
|
|
|
basedOnDependencyAnalysis: false
|
2022-04-13 10:09:45 +03:00
|
|
|
shell: /bin/sh
|
|
|
|
script: |
|
|
|
|
export PATH="$PATH:/opt/homebrew/bin"
|
2022-06-28 12:23:35 +01:00
|
|
|
if which swiftgen >/dev/null; then
|
|
|
|
swiftgen config run --config Tools/SwiftGen/swiftgen-config.yml
|
2022-04-13 10:09:45 +03:00
|
|
|
else
|
2022-06-28 12:23:35 +01:00
|
|
|
echo "warning: SwiftGen not installed, download from https://github.com/SwiftGen/SwiftGen"
|
2022-04-13 10:09:45 +03:00
|
|
|
fi
|
2023-03-08 17:04:31 +01:00
|
|
|
- name: 🧙 Sourcery
|
|
|
|
runOnlyWhenInstalling: false
|
|
|
|
basedOnDependencyAnalysis: false
|
|
|
|
shell: /bin/sh
|
|
|
|
script: |
|
|
|
|
export PATH="$PATH:/opt/homebrew/bin"
|
|
|
|
if which sourcery >/dev/null; then
|
|
|
|
sourcery --config Tools/Sourcery/sourcery_automockable_config.yml
|
|
|
|
else
|
|
|
|
echo "warning: Sourcert not installed, run swift run tools setup-project"
|
|
|
|
fi
|
2022-07-22 11:33:53 +03:00
|
|
|
|
2022-08-30 16:45:40 +01:00
|
|
|
postBuildScripts:
|
|
|
|
- name: ⚠️ SwiftLint
|
2022-07-22 11:33:53 +03:00
|
|
|
runOnlyWhenInstalling: false
|
2022-10-17 09:56:17 +01:00
|
|
|
basedOnDependencyAnalysis: false
|
2022-07-22 11:33:53 +03:00
|
|
|
shell: /bin/sh
|
|
|
|
script: |
|
|
|
|
export PATH="$PATH:/opt/homebrew/bin"
|
2022-08-30 16:45:40 +01:00
|
|
|
if which swiftlint >/dev/null; then
|
|
|
|
swiftlint
|
2022-07-22 11:33:53 +03:00
|
|
|
else
|
2022-08-30 16:45:40 +01:00
|
|
|
echo "warning: SwiftLint not installed, download from https://github.com/realm/SwiftLint"
|
2022-07-22 11:33:53 +03:00
|
|
|
fi
|
2022-08-30 16:45:40 +01:00
|
|
|
- name: 🧹 SwiftFormat
|
2022-08-03 12:17:09 +01:00
|
|
|
runOnlyWhenInstalling: false
|
2022-10-17 09:56:17 +01:00
|
|
|
basedOnDependencyAnalysis: false
|
2022-08-03 12:17:09 +01:00
|
|
|
shell: /bin/sh
|
|
|
|
script: |
|
|
|
|
export PATH="$PATH:/opt/homebrew/bin"
|
2022-08-30 16:45:40 +01:00
|
|
|
if which swiftformat >/dev/null; then
|
|
|
|
swiftformat --lint --lenient "$PROJECT_DIR"
|
2022-08-03 12:17:09 +01:00
|
|
|
else
|
2022-08-30 16:45:40 +01:00
|
|
|
echo "warning: SwiftFormat not installed, download from https://github.com/nicklockwood/SwiftFormat"
|
2022-08-03 12:17:09 +01:00
|
|
|
fi
|
|
|
|
|
2022-04-13 09:48:18 +03:00
|
|
|
dependencies:
|
2022-11-21 19:37:13 +03:00
|
|
|
- target: NSE
|
2022-04-13 09:48:18 +03:00
|
|
|
- package: MatrixRustSDK
|
2022-06-09 14:44:46 +01:00
|
|
|
- package: DesignKit
|
2023-02-15 17:14:50 +02:00
|
|
|
- package: Algorithms
|
2022-09-02 10:09:02 +01:00
|
|
|
- package: AnalyticsEvents
|
2022-07-28 09:28:42 +01:00
|
|
|
- package: AppAuth
|
2023-01-31 17:48:24 +00:00
|
|
|
- package: Collections
|
2022-10-28 16:11:10 +02:00
|
|
|
- package: DeviceKit
|
2022-04-13 09:48:18 +03:00
|
|
|
- package: DTCoreText
|
|
|
|
- package: KeychainAccess
|
|
|
|
- package: Kingfisher
|
2023-02-15 14:02:50 +00:00
|
|
|
- package: KZFileWatchers
|
2022-09-02 10:09:02 +01:00
|
|
|
- package: PostHog
|
2022-04-13 09:48:18 +03:00
|
|
|
- package: SwiftyBeaver
|
2022-05-27 13:02:36 +03:00
|
|
|
- package: SwiftState
|
2022-06-06 12:38:07 +03:00
|
|
|
- package: GZIP
|
|
|
|
- package: Sentry
|
2023-01-31 17:48:24 +00:00
|
|
|
- package: Version
|
2022-04-13 09:48:18 +03:00
|
|
|
|
|
|
|
sources:
|
|
|
|
- path: ../Sources
|
|
|
|
excludes:
|
2022-12-15 15:22:39 +02:00
|
|
|
- Other/Extensions/XCUIElement.swift
|
2022-04-26 22:48:17 +03:00
|
|
|
- path: ../Resources
|
2022-04-13 09:48:18 +03:00
|
|
|
- path: ../SupportingFiles
|
2022-05-12 12:30:24 +03:00
|
|
|
- path: ../../Tools/Scripts/Templates/SimpleScreenExample/ElementX
|