-
Notifications
You must be signed in to change notification settings - Fork 503
/
Copy pathtarget.yml
96 lines (90 loc) · 2.62 KB
/
target.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
name: Riot
schemes:
Riot:
analyze:
config: Debug
archive:
config: Release
build:
targets:
Riot:
- running
- testing
- profiling
- analyzing
- archiving
profile:
config: Release
run:
config: Debug
disableMainThreadChecker: true
test:
config: Debug
disableMainThreadChecker: true
targets:
- RiotTests
gatherCoverageData: true
coverageTargets:
- Riot
targets:
Riot:
type: application
platform: iOS
dependencies:
# Disabled due to crypto corruption issues.
# https://github.com/element-hq/element-ios/issues/7618
# - target: RiotShareExtension
# - target: SiriIntents
- target: RiotNSE
- target: BroadcastUploadExtension
- target: DesignKit
- target: CommonKit
- package: AnalyticsEvents
- package: Mapbox
- package: OrderedCollections
- package: SwiftOGG
- package: WysiwygComposer
- package: DeviceKit
- package: DTCoreText
- package: PostHog
configFiles:
Debug: Debug.xcconfig
Release: Release.xcconfig
preBuildScripts:
- name: ⚠️ SwiftLint
runOnlyWhenInstalling: false
shell: /bin/sh
script: "\"${PODS_ROOT}/SwiftLint/swiftlint\"\n"
- name: 🛠 SwiftGen
runOnlyWhenInstalling: false
shell: /bin/sh
script: "\"${PODS_ROOT}/SwiftGen/bin/swiftgen\" config run --config \"Tools/SwiftGen/swiftgen-config.yml\"\n"
- name: 📖 locheck
runOnlyWhenInstalling: false
shell: /bin/sh
script: |
# homebrew uses a non-standard directory on M1
if [[ $(arch) = arm64 ]]; then export PATH="$PATH:/opt/homebrew/bin"; fi
xcrun --sdk macosx mint run Asana/locheck@0.9.6 discoverlproj --treat-warnings-as-errors --ignore-missing --ignore lproj_file_missing_from_translation "$PROJECT_DIR/Riot/Assets"
sources:
- path: ../RiotSwiftUI/Modules
# Riot will provide it's own LocaleProviderType so exclude.
excludes:
- "Common/Locale/LocaleProvider.swift"
- "**/Test/**"
- path: ../Tools
excludes:
- "Logs"
- "Release"
- "Templates/*.sh"
- path: ../Config
- path: .
excludes:
- "Modules/Room/EmojiPicker/Data/EmojiMart/EmojiJSONStore.swift"
- "Assets/ar.lproj/**" # RTL is broken so languages are disabled for now
- "Assets/he.lproj/**"
- "Assets/pr.lproj/**" # Unsupported language on iOS
- path: ../RiotShareExtension/Shared
- path: Modules/MatrixKit
excludes:
- "**/*.md" # excludes all files with the .md extension