-
Notifications
You must be signed in to change notification settings - Fork 237
Expand file tree
/
Copy pathproject.yml
More file actions
361 lines (348 loc) · 11.1 KB
/
project.yml
File metadata and controls
361 lines (348 loc) · 11.1 KB
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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
name: ProtonMail
options:
createIntermediateGroups: true
dead_code_stripping: true
generateEmptyDirectories: true
groupOrdering:
- pattern: 'Modules'
order: [App]
deploymentTarget:
iOS: "17.2"
postGenCommand:
# Copy the File header into the generated xcodeproj bundle.
cp ./scripts/templates/IDETemplateMacros.plist ProtonMail.xcodeproj/xcshareddata/
packages:
InboxComposer:
path: Modules/InboxComposer
group: Modules
InboxContacts:
path: Modules/InboxContacts
group: Modules
InboxCore:
path: Modules/InboxCore
group: Modules
InboxCoreUI:
path: Modules/InboxCoreUI
group: Modules
InboxDesignSystem:
path: Modules/InboxDesignSystem
group: Modules
InboxWebView:
path: Modules/InboxWebView
group: Modules
InboxIAP:
path: Modules/InboxIAP
group: Modules
InboxAttribution:
path: Modules/InboxAttribution
group: Modules
InboxKeychain:
path: Modules/InboxKeychain
group: Modules
InboxRSVP:
path: Modules/InboxRSVP
group: Modules
InboxSnapshotTesting:
path: Modules/InboxSnapshotTesting
group: Modules
InboxTesting:
path: Modules/InboxTesting
group: Modules
PaymentsNG:
path: ProtonPackages/et-protoncore/platform/apple/Payments/PaymentsNG
group: ProtonPackages
PaymentsUI:
path: ProtonPackages/et-protoncore/platform/apple/Payments/PaymentsUI
group: ProtonPackages
proton_app_uniffi:
path: ProtonPackages/proton_app_uniffi
group: ProtonPackages
ProtonCoreET:
path: ProtonPackages/et-protoncore/platform/apple/ProtonCoreET
group: ProtonPackages
Scrypt:
url: https://github.com/greymass/swift-scrypt.git
revision: "be61ddc3c1efb9cb35de251afa88f4897c6cc255"
SwiftUIIntrospect:
url: https://github.com/siteline/swiftui-introspect
from: "1.4.0-beta.4"
TestableNotificationService:
path: Modules/TestableNotificationService
group: Modules
TestableShareExtension:
path: Modules/TestableShareExtension
group: Modules
TryCatch:
path: Modules/TryCatch
group: Modules
ViewInspector:
url: https://github.com/nalexn/ViewInspector.git
from: "0.10.1"
configs:
Debug: debug
QA: release
AppStore: release
settings:
base:
BUNDLE_DISPLAY_NAME: "Proton Mail"
CODE_SIGN_STYLE: Manual
CURRENT_PROJECT_VERSION: 1
DEVELOPMENT_TEAM: 2SB5Z68H26
MARKETING_VERSION: 7.10.0
SWIFT_STRICT_CONCURRENCY: complete
configs:
Debug:
OTHER_SWIFT_FLAGS: "-Xfrontend -enable-actor-data-race-checks"
QA:
SWIFT_ACTIVE_COMPILATION_CONDITIONS: "QA"
targetTemplates:
Extension:
type: app-extension
platform: iOS
scheme: {}
sources:
- path: Modules/${target_name}/Sources
settings:
base:
CODE_SIGN_IDENTITY: "Apple Distribution: Proton AG (2SB5Z68H26)"
CODE_SIGN_ENTITLEMENTS: ${target_name}.entitlements
PRODUCT_BUNDLE_IDENTIFIER: ${bundle_identifier}
PROVISIONING_PROFILE_SPECIFIER: ${release_provisioning_profile}
configs:
Debug:
CODE_SIGN_IDENTITY: "Apple Development"
CODE_SIGN_STYLE: Automatic
PROVISIONING_PROFILE_SPECIFIER: ""
info:
path: Modules/${target_name}/Sources/SupportingFiles/Info.plist
properties:
CFBundleDisplayName: "$(BUNDLE_DISPLAY_NAME)"
CFBundleShortVersionString: "$(MARKETING_VERSION)"
NSExtension:
NSExtensionPointIdentifier: ${point_identifier}
NSExtensionPrincipalClass: $(PRODUCT_MODULE_NAME).${principal_class}
targets:
ProtonMail:
type: application
platform: iOS
supportedDestinations:
- iOS
scheme:
preActions:
- name: swift-format
script: |
if [ $ACTION == "build" ]; then
cd "$SRCROOT"
xcrun swift-format format -r Modules -i
fi
settingsTarget: ProtonMail
- name: Sourcery
script: |
if [ $ACTION == "build" ]; then
cd "$SRCROOT"
find sourcery/configs -name "*.yaml" -exec /opt/homebrew/bin/mint run sourcery --config {} \;
fi
settingsTarget: ProtonMail
sources:
- path: Modules/App/Sources
- path: Settings.bundle
settings:
base:
ASSETCATALOG_COMPILER_APPICON_NAME: AppIcon
ASSETCATALOG_COMPILER_INCLUDE_ALL_APPICON_ASSETS: YES
PRODUCT_BUNDLE_IDENTIFIER: "ch.protonmail.protonmail"
PROVISIONING_PROFILE_SPECIFIER: "ProtonMail Release"
SWIFT_EMIT_LOC_STRINGS: YES
CODE_SIGN_ENTITLEMENTS: "ProtonMail.entitlements"
CODE_SIGN_IDENTITY: "Apple Distribution: Proton AG (2SB5Z68H26)"
configs:
Debug:
CODE_SIGN_ENTITLEMENTS: "ProtonMailDebug.entitlements"
CODE_SIGN_IDENTITY: "Apple Development"
PROVISIONING_PROFILE_SPECIFIER: "ProtonMail Dev"
QA:
CODE_SIGN_ENTITLEMENTS: "ProtonMailDebug.entitlements"
ASSETCATALOG_COMPILER_APPICON_NAME: AppIconDev
info:
path: Modules/App/Sources/SupportingFiles/Info.plist
properties:
CFBundleDisplayName: "$(BUNDLE_DISPLAY_NAME)"
CFBundleShortVersionString: "$(MARKETING_VERSION)"
CFBundlePackageType: "$(PRODUCT_BUNDLE_PACKAGE_TYPE)"
CFBundleURLTypes:
- CFBundleTypeRole: Editor
CFBundleURLName: ch.protonmail.protonmail
CFBundleURLSchemes:
- mailto
- protonmail
CFBundleIcons:
CFBundleAlternateIcons:
AppIcon-notes:
CFBundleIconFiles:
- AppIcon-notes
AppIcon-weather:
CFBundleIconFiles:
- AppIcon-weather
AppIcon-calculator:
CFBundleIconFiles:
- AppIcon-calculator
CFBundlePrimaryIcon:
CFBundleIconFiles:
- AppIcon
UIPrerenderedIcon: NO
ITSAppUsesNonExemptEncryption: YES
ITSEncryptionExportComplianceCode: "d90af253-90ca-4698-95d3-40f4e4a36ce4"
LSRequiresIPhoneOS: YES
NSAppTransportSecurity:
NSAllowsArbitraryLoadsInWebContent: YES
NSCameraUsageDescription: "{{Placeholder}}"
NSContactsUsageDescription: "{{Placeholder}}"
NSFaceIDUsageDescription: "{{Placeholder}}"
NSPhotoLibraryAddUsageDescription: "{{Placeholder}}"
UIApplicationSupportsIndirectInputEvents: YES
UIApplicationSceneManifest:
UIApplicationSupportsMultipleScenes: YES
UILaunchScreen:
UILaunchScreen: []
UISupportedInterfaceOrientations:
- UIInterfaceOrientationPortrait
- UIInterfaceOrientationPortraitUpsideDown
- UIInterfaceOrientationLandscapeLeft
- UIInterfaceOrientationLandscapeRight
BGTaskSchedulerPermittedIdentifiers:
- ch.protonmail.protonmail.execute_pending_actions
UIBackgroundModes: [processing]
SKAdNetworkItems:
- SKAdNetworkIdentifier: eqhxz8m8av.skadnetwork
- SKAdNetworkIdentifier: cstr6suwn9.skadnetwork
- SKAdNetworkIdentifier: klf5c3l5u5.skadnetwork
- SKAdNetworkIdentifier: v9wttpbfk9.skadnetwork
- SKAdNetworkIdentifier: n38lu8286q.skadnetwork
- SKAdNetworkIdentifier: mj797d8u6f.skadnetwork
- SKAdNetworkIdentifier: 22mmun2rn5.skadnetwork
- SKAdNetworkIdentifier: 238da6jt44.skadnetwork
- SKAdNetworkIdentifier: 2tdux39lx8.skadnetwork
- SKAdNetworkIdentifier: n66cz3y3bx.skadnetwork
- SKAdNetworkIdentifier: 9yg77x724h.skadnetwork
dependencies:
- package: InboxComposer
- package: InboxContacts
- package: InboxCore
- package: InboxCoreUI
- package: InboxDesignSystem
- package: InboxIAP
- package: InboxKeychain
- package: InboxAttribution
- package: InboxRSVP
- target: NotificationService
- package: PaymentsUI
- package: proton_app_uniffi
- package: ProtonCoreET
products:
- AccountChallenge
- AccountLogin
- AccountManager
- AccountPassword
- package: Scrypt
- target: ShareExtension
- package: SwiftUIIntrospect
preBuildScripts:
- name: swift-format
script: xcrun swift-format lint -r Modules
basedOnDependencyAnalysis: false
- name: Update Licenses
script: /opt/homebrew/bin/mint run LicensePlist license-plist --output-path Settings.bundle
basedOnDependencyAnalysis: false
ProtonMailTest:
type: bundle.unit-test
platform: iOS
info:
path: Modules/App/Tests/SupportingFiles/Info.plist
sources:
- path: Modules/App/Tests
excludes:
- "Modules/App/Tests/**/__Snapshots__"
dependencies:
- target: ProtonMail
- package: InboxSnapshotTesting
- package: InboxTesting
- package: ViewInspector
- package: proton_app_uniffi
settings:
SWIFT_OBJC_BRIDGING_HEADER: Modules/App/Tests/Utils/ProtonMailTest-Bridging-Header.h
ProtonMailUITest:
type: bundle.ui-testing
platform: iOS
info:
path: Modules/App/UITests/SupportingFiles/Info.plist
sources:
- path: Modules/App/UITests
dependencies:
- target: ProtonMail
scheme: ProtonMailUITest
NotificationService:
templates:
- Extension
templateAttributes:
bundle_identifier: ch.protonmail.protonmail.notifications
principal_class: NotificationService
point_identifier: com.apple.usernotifications.service
release_provisioning_profile: "Mail - Notification Service Distribution"
dependencies:
- package: TestableNotificationService
ShareExtension:
templates:
- Extension
templateAttributes:
bundle_identifier: ch.protonmail.protonmail.Share
principal_class: DeepLinkingShareViewController
point_identifier: com.apple.share-services
release_provisioning_profile: "Protonmail share release"
dependencies:
- package: TestableShareExtension
info:
properties:
NSExtension:
NSExtensionAttributes:
NSExtensionActivationRule: >
SUBQUERY (
extensionItems,
$extensionItem,
SUBQUERY (
$extensionItem.attachments,
$attachment,
ANY $attachment.registeredTypeIdentifiers UTI-CONFORMS-TO "public.data"
).@count > 0
).@count > 0
schemes:
ProtonMailUITest:
build:
config: Debug
targets:
ProtonMail: all
ProtonMailUITest: all
test:
config: Debug
targets:
- ProtonMailUITest
testPlans:
- path: Modules/App/UITests/Plans/PerformanceTests.xctestplan
defaultPlan: true
gatherCoverageData: true
parallelizable: true
randomExecutionOrder: true
AllUnitAndSnapshotTests:
build:
targets:
ProtonMail: [test, run]
test:
testPlans:
- path: TestPlans/AllUnitAndSnapshotTests.xctestplan
QA:
build:
targets:
ProtonMail: [run, archive]
run:
config: QA
archive:
config: QA