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
|
2023-08-16 15:55:02 +03:00
|
|
|
value: localhost:9090
|
2022-11-29 09:36:19 +02:00
|
|
|
isEnabled: false
|
2023-02-23 15:07:33 +00:00
|
|
|
- variable: UI_TESTS_SCREEN
|
|
|
|
value: ""
|
|
|
|
isEnabled: false
|
2023-06-30 13:27:49 +01:00
|
|
|
- variable: RESET_APP_SETTINGS
|
|
|
|
value: "true"
|
|
|
|
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
|
2023-03-29 12:48:06 +02:00
|
|
|
testPlans:
|
|
|
|
- path: ../../UnitTests/SupportingFiles/UnitTests.xctestplan
|
|
|
|
defaultPlan: true
|
2022-04-13 17:19:11 +03:00
|
|
|
|
2022-04-13 09:48:18 +03:00
|
|
|
targets:
|
|
|
|
ElementX:
|
|
|
|
type: application
|
|
|
|
platform: iOS
|
|
|
|
|
2023-07-14 10:19:38 +02:00
|
|
|
configFiles:
|
2023-08-07 10:23:17 +03:00
|
|
|
Debug: ../SupportingFiles/secrets.xcconfig
|
|
|
|
Release: ../SupportingFiles/secrets.xcconfig
|
2023-07-14 10:19:38 +02:00
|
|
|
|
2022-04-13 09:48:18 +03:00
|
|
|
info:
|
|
|
|
path: ../SupportingFiles/Info.plist
|
|
|
|
properties:
|
2023-06-23 17:10:37 +01:00
|
|
|
UILaunchScreen:
|
|
|
|
UIColorName: colors/background-color
|
2023-06-08 12:12:58 +03:00
|
|
|
CFBundleDisplayName: $(APP_DISPLAY_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
|
|
|
|
]
|
2023-06-13 17:26:05 +03:00
|
|
|
NSCameraUsageDescription: To take pictures or videos and send them as a message $(APP_DISPLAY_NAME) needs access to the camera.
|
|
|
|
NSMicrophoneUsageDescription: To take videos with audio and send them as a message $(APP_DISPLAY_NAME) needs access to the microphone.
|
2023-06-13 08:49:15 +03:00
|
|
|
NSPhotoLibraryAddUsageDescription: Allows saving photos and videos to your library.
|
2023-07-11 12:42:59 +02:00
|
|
|
NSLocationWhenInUseUsageDescription: When you share your location to people, $(APP_DISPLAY_NAME) needs access to show them a map.
|
2023-05-15 13:06:25 +03:00
|
|
|
UIBackgroundModes: [
|
|
|
|
fetch
|
|
|
|
]
|
|
|
|
BGTaskSchedulerPermittedIdentifiers: [
|
|
|
|
io.element.elementx.background.refresh
|
|
|
|
]
|
2023-08-22 12:14:23 +02:00
|
|
|
UTExportedTypeDeclarations:
|
|
|
|
- UTTypeConformsTo: [public.text]
|
|
|
|
UTTypeDescription: Mention Pills
|
|
|
|
UTTypeIdentifier: $(PILLS_UT_TYPE_IDENTIFIER)
|
|
|
|
CFBundleDocumentTypes:
|
|
|
|
- CFBundleTypeName: Mention Pills
|
|
|
|
CFBundleTypeRole: Viewer
|
|
|
|
LSHandlerRank: Owner
|
|
|
|
LSItemContentTypes: $(PILLS_UT_TYPE_IDENTIFIER)
|
2023-08-22 18:23:49 +03:00
|
|
|
LSSupportsOpeningDocumentsInPlace: false
|
2023-08-23 19:15:38 +03:00
|
|
|
mapLibreAPIKey: $(MAPLIBRE_API_KEY)
|
|
|
|
otlpTracingURL: ${OTLP_TRACING_URL}
|
|
|
|
otlpTracingUsername: ${OTLP_TRACING_USERNAME}
|
|
|
|
otlpTracingPassword: ${OTLP_TRACING_PASSWORD}
|
2023-03-28 17:47:34 +03:00
|
|
|
|
2022-04-13 09:48:18 +03:00
|
|
|
|
|
|
|
settings:
|
|
|
|
base:
|
2023-06-08 12:07:14 +03:00
|
|
|
PRODUCT_NAME: $(APP_NAME)
|
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)
|
2023-08-22 12:14:23 +02:00
|
|
|
CODE_SIGN_ENTITLEMENTS: ElementX/SupportingFiles/ElementX.entitlements
|
2022-04-13 09:48:18 +03:00
|
|
|
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
|
2023-08-22 12:14:23 +02:00
|
|
|
PILLS_UT_TYPE_IDENTIFIER: $(BASE_BUNDLE_IDENTIFIER).pills
|
|
|
|
|
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
|
2023-03-23 11:26:20 +01:00
|
|
|
echo "warning: Sourcery not installed, run swift run tools setup-project"
|
2023-03-08 17:04:31 +01:00
|
|
|
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-03-21 14:52:10 +00:00
|
|
|
- package: Compound
|
2023-02-15 17:14:50 +02:00
|
|
|
- package: Algorithms
|
2022-09-02 10:09:02 +01:00
|
|
|
- package: AnalyticsEvents
|
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
|
2023-08-08 14:55:09 +03:00
|
|
|
- package: LRUCache
|
2023-06-14 11:08:36 +02:00
|
|
|
- package: Mapbox
|
2022-09-02 10:09:02 +01:00
|
|
|
- package: PostHog
|
2022-05-27 13:02:36 +03:00
|
|
|
- package: SwiftState
|
2022-06-06 12:38:07 +03:00
|
|
|
- package: GZIP
|
|
|
|
- package: Sentry
|
2023-04-14 14:24:48 +02:00
|
|
|
- package: URLRouting
|
2023-01-31 17:48:24 +00:00
|
|
|
- package: Version
|
2023-08-10 19:14:18 +01:00
|
|
|
- package: Emojibase
|
2023-08-29 14:37:13 +02:00
|
|
|
- package: WysiwygComposer
|
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
|