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
|
|
|
|
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
|
|
|
environmentVariables:
|
|
|
|
IS_RUNNING_UNIT_TESTS: "1"
|
|
|
|
targets:
|
|
|
|
- UnitTests
|
|
|
|
- UITests
|
|
|
|
|
2022-04-13 09:48:18 +03:00
|
|
|
targets:
|
|
|
|
ElementX:
|
|
|
|
type: application
|
|
|
|
platform: iOS
|
|
|
|
|
|
|
|
info:
|
|
|
|
path: ../SupportingFiles/Info.plist
|
|
|
|
properties:
|
|
|
|
UILaunchStoryboardName: LaunchScreen
|
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-04-13 09:48:18 +03:00
|
|
|
|
|
|
|
settings:
|
|
|
|
base:
|
|
|
|
PRODUCT_NAME: ElementX
|
|
|
|
PRODUCT_BUNDLE_IDENTIFIER: io.element.elementx
|
2022-07-27 10:57:16 +01:00
|
|
|
APP_GROUP_IDENTIFIER: group.io.element
|
2022-07-28 14:39:43 +01:00
|
|
|
MARKETING_VERSION: 1.0.3
|
2022-07-01 14:24:42 +03:00
|
|
|
CURRENT_PROJECT_VERSION: 1
|
2022-04-13 11:54:07 +03:00
|
|
|
DEVELOPMENT_TEAM: 7J4U792NQT
|
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-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
|
|
|
|
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
|
2022-06-28 12:23:35 +01:00
|
|
|
|
|
|
|
postBuildScripts:
|
|
|
|
- name: ⚠️ SwiftLint
|
2022-04-14 09:22:55 +03:00
|
|
|
runOnlyWhenInstalling: false
|
|
|
|
shell: /bin/sh
|
|
|
|
script: |
|
|
|
|
export PATH="$PATH:/opt/homebrew/bin"
|
2022-06-28 12:23:35 +01:00
|
|
|
if which swiftlint >/dev/null; then
|
|
|
|
swiftlint
|
2022-04-14 09:22:55 +03:00
|
|
|
else
|
2022-06-28 12:23:35 +01:00
|
|
|
echo "warning: SwiftLint not installed, download from https://github.com/realm/SwiftLint"
|
2022-04-14 09:22:55 +03:00
|
|
|
fi
|
2022-07-22 11:33:53 +03:00
|
|
|
|
|
|
|
- name: 🧹 SwiftFormat
|
|
|
|
runOnlyWhenInstalling: false
|
|
|
|
shell: /bin/sh
|
|
|
|
script: |
|
|
|
|
export PATH="$PATH:/opt/homebrew/bin"
|
|
|
|
if which swiftformat >/dev/null; then
|
|
|
|
if [ $CONFIGURATION = "Debug" ]; then
|
|
|
|
swiftformat --lint --lenient "$PROJECT_DIR"
|
|
|
|
else
|
|
|
|
swiftformat --lint "$PROJECT_DIR"
|
|
|
|
fi
|
|
|
|
else
|
|
|
|
echo "warning: SwiftFormat not installed, download from https://github.com/nicklockwood/SwiftFormat"
|
|
|
|
fi
|
2022-04-13 09:48:18 +03:00
|
|
|
|
|
|
|
dependencies:
|
|
|
|
- package: MatrixRustSDK
|
2022-06-09 14:44:46 +01:00
|
|
|
- package: DesignKit
|
2022-07-28 09:28:42 +01:00
|
|
|
- package: AppAuth
|
2022-04-13 09:48:18 +03:00
|
|
|
- package: DTCoreText
|
|
|
|
- package: KeychainAccess
|
|
|
|
- package: Kingfisher
|
|
|
|
- package: Introspect
|
|
|
|
- package: SwiftyBeaver
|
2022-05-27 13:02:36 +03:00
|
|
|
- package: SwiftState
|
2022-06-06 12:38:07 +03:00
|
|
|
- package: GZIP
|
|
|
|
- package: Sentry
|
2022-04-13 09:48:18 +03:00
|
|
|
|
|
|
|
sources:
|
|
|
|
- path: ../Sources
|
|
|
|
excludes:
|
|
|
|
- Screens/Templates
|
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
|