-
Notifications
You must be signed in to change notification settings - Fork 17
/
project.yml
292 lines (267 loc) · 10.5 KB
/
project.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
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
name: p2p_wallet
packages:
KeyAppKit:
path: ./Packages/KeyAppKit
BEPureLayout:
url: https://github.com/p2p-org/BEPureLayout.git
branch: master
Lokalise:
url: https://github.com/lokalise/lokalise-ios-framework.git
from: 0.10.2
ReachabilitySwift:
url: https://github.com/ashleymills/Reachability.swift.git
from: 5.0.0
KeychainSwift:
url: https://github.com/evgenyneu/keychain-swift.git
exactVersion: 19.0.0
SwiftyUserDefaults:
url: https://github.com/sunshinejr/SwiftyUserDefaults.git
exactVersion: 5.3.0
Down:
url: https://github.com/p2p-org/Down.git
branch: master
Resolver:
url: https://github.com/hmlongco/Resolver.git
exactVersion: 1.5.0
Kingfisher:
url: https://github.com/onevcat/Kingfisher.git
from: 7.6.2
PhoneNumberKit:
url: https://github.com/marmelroy/PhoneNumberKit.git
from: 3.5.9
SkeletonUI:
url: https://github.com/p2p-org/SkeletonUI.git
branch: master
Introspect:
url: https://github.com/siteline/SwiftUI-Introspect.git
exactVersion: 0.1.4
lottie-spm:
url: https://github.com/airbnb/lottie-spm.git
exactVersion: 4.1.3
GoogleSignIn:
url: https://github.com/google/GoogleSignIn-iOS
from: 6.2.4
Sentry:
url: https://github.com/getsentry/sentry-cocoa
exactVersion: 7.31.5
Task_retrying:
url: https://github.com/bigearsenal/task-retrying-swift.git
branch: master
JazziconSwift:
url: https://github.com/p2p-org/JazziconSwift.git
branch: master
Firebase:
url: https://github.com/firebase/firebase-ios-sdk.git
from: 10.20.0
options:
deploymentTarget:
iOS: 15.0
groupSortPosition: top
minimumXcodeGenVersion: 2.18.0
preGenCommand: rm -f p2p_wallet/Resources/Asset+Generated.swift p2p_wallet/Resources/Fonts+Generated.swift
# postGenCommand: sh Scripts/postGenCommand.sh
configs:
Debug: debug
Test: release
Release: release
configFiles:
Debug: p2p_wallet/Config.xcconfig
Test: p2p_wallet/Config.xcconfig
Release: p2p_wallet/Config.xcconfig
settings:
base:
MARKETING_VERSION: 2.12.0
configs:
Debug:
VALIDATE_PRODUCT: false
SWIFT_COMPILATION_MODE: singlefile
SWIFT_OPTIMIZATION_LEVEL: "-Onone"
ENABLE_TESTABILITY: true
ENABLE_BITCODE: false
DEBUG_INFORMATION_FORMAT: dwarf
ONLY_ACTIVE_ARCH: true
SWIFT_ACTIVE_COMPILATION_CONDITIONS: DEBUG
GCC_PREPROCESSOR_DEFINITIONS:
- DEBUG=1
Test:
VALIDATE_PRODUCT: true
SWIFT_COMPILATION_MODE: wholemodule
SWIFT_OPTIMIZATION_LEVEL: "-O"
ENABLE_TESTABILITY: false
ENABLE_BITCODE: false
DEBUG_INFORMATION_FORMAT: dwarf-with-dsym
ONLY_ACTIVE_ARCH: false
SWIFT_ACTIVE_COMPILATION_CONDITIONS: TEST
GCC_PREPROCESSOR_DEFINITIONS:
- TEST=1
Release:
VALIDATE_PRODUCT: true
SWIFT_COMPILATION_MODE: wholemodule
SWIFT_OPTIMIZATION_LEVEL: "-O"
ENABLE_TESTABILITY: true
ENABLE_BITCODE: false
DEBUG_INFORMATION_FORMAT: dwarf-with-dsym
ONLY_ACTIVE_ARCH: false
SWIFT_ACTIVE_COMPILATION_CONDITIONS: RELEASE
GCC_PREPROCESSOR_DEFINITIONS:
- RELEASE=1
aggregateTargets:
Detect unused code:
buildScripts:
- name: SwiftGen
script: /opt/homebrew/bin/swiftgen config run --config ${PWD}/swiftgen.yml
- name: Periphery
script: /opt/homebrew/bin/periphery scan --format xcode
targets:
p2p_wallet:
type: application
platform: iOS
deploymentTarget: 15.0
sources:
- path: p2p_wallet
name: p2p_wallet
excludes:
- "**/*.a"
- "**/GoogleService-Info.plist"
- "Resources/Base.lproj/*"
- path: README.MD
preBuildScripts:
- script: |
# Name of the resource we're selectively copying
GOOGLESERVICE_INFO_PLIST=GoogleService-Info.plist
# Get references to dev and prod versions of the GoogleService-Info.plist
# NOTE: These should only live on the file system and should NOT be part of the target (since we'll be adding them to the target manually)
GOOGLESERVICE_INFO_DEV=${PROJECT_DIR}/${TARGET_NAME}/Firebase/Dev/${GOOGLESERVICE_INFO_PLIST}
GOOGLESERVICE_INFO_PROD=${PROJECT_DIR}/${TARGET_NAME}/Firebase/Prod/${GOOGLESERVICE_INFO_PLIST}
# Make sure the dev version of GoogleService-Info.plist exists
echo "Looking for ${GOOGLESERVICE_INFO_PLIST} in ${GOOGLESERVICE_INFO_DEV}"
if [ ! -f $GOOGLESERVICE_INFO_DEV ]
then
echo "No Development GoogleService-Info.plist found. Please ensure it's in the proper directory."
exit 1
fi
# Make sure the prod version of GoogleService-Info.plist exists
echo "Looking for ${GOOGLESERVICE_INFO_PLIST} in ${GOOGLESERVICE_INFO_PROD}"
if [ ! -f $GOOGLESERVICE_INFO_PROD ]
then
echo "No Production GoogleService-Info.plist found. Please ensure it's in the proper directory."
exit 1
fi
# Get a reference to the destination location for the GoogleService-Info.plist
PLIST_DESTINATION=${BUILT_PRODUCTS_DIR}/${PRODUCT_NAME}.app
echo "Will copy ${GOOGLESERVICE_INFO_PLIST} to final destination: ${PLIST_DESTINATION}"
# Copy over the prod GoogleService-Info.plist for Release builds
if [ "${CONFIGURATION}" == "Release" ]
then
echo "Using ${GOOGLESERVICE_INFO_PROD}"
cp "${GOOGLESERVICE_INFO_PROD}" "${PLIST_DESTINATION}"
else
echo "Using ${GOOGLESERVICE_INFO_DEV}"
cp "${GOOGLESERVICE_INFO_DEV}" "${PLIST_DESTINATION}"
fi
name: "[SCRIPT] Setup Firebase Environment GoogleService-Info.plist"
- script: |
if [ "${CONFIGURATION}" == "Debug" ]; then
/opt/homebrew/bin/swiftgen config run --config ${PWD}/swiftgen.yml
fi
name: "[SCRIPT] Swiftgen Run"
postBuildScripts:
- script: |
if [ "${CONFIGURATION}" != "Debug" ]; then
${BUILD_DIR%Build/*}SourcePackages/checkouts/firebase-ios-sdk/Crashlytics/run
fi
name: "[SCRIPT] Crashlytics Run"
inputFiles:
- "${DWARF_DSYM_FOLDER_PATH}/${DWARF_DSYM_FILE_NAME}/Contents/Resources/DWARF"
- "$(SRCROOT)/$(BUILT_PRODUCTS_DIR)/$(INFOPLIST_PATH)"
settings:
base:
TARGETED_DEVICE_FAMILY: 1
PRODUCT_BUNDLE_IDENTIFIER: org.p2p.cyber
DEVELOPMENT_TEAM: A72KN37UN2
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME: AccentColor
CODE_SIGN_IDENTITY: 'Apple Development'
CODE_SIGN_ENTITLEMENTS: p2p_wallet/p2p_wallet.entitlements
CODE_SIGN_STYLE: Automatic
CURRENT_PROJECT_VERSION: 1
OTHER_LDFLAGS:
- "$(inherited)"
- "-framework"
- "\"CFNetwork\""
PRODUCT_NAME: "$(TARGET_NAME)"
DEBUG_INFORMATION_FORMAT: "dwarf-with-dsym"
configs:
Debug:
PRODUCT_BUNDLE_IDENTIFIER: org.p2p.cyber.test
SWIFT_ACTIVE_COMPILATION_CONDITIONS: DEBUG
ASSETCATALOG_COMPILER_APPICON_NAME: AppIconTest
Test:
PRODUCT_BUNDLE_IDENTIFIER: org.p2p.cyber.test
SWIFT_ACTIVE_COMPILATION_CONDITIONS: TEST
ASSETCATALOG_COMPILER_APPICON_NAME: AppIconTest
Release:
PRODUCT_BUNDLE_IDENTIFIER: org.p2p.cyber
SWIFT_ACTIVE_COMPILATION_CONDITIONS: RELEASE
ASSETCATALOG_COMPILER_APPICON_NAME: AppIcon
dependencies:
- package: KeyAppKit
product: KeyAppKitLogger
- package: KeyAppKit
product: NameService
- package: KeyAppKit
product: AnalyticsManager
- package: KeyAppKit
product: JSBridge
- package: KeyAppKit
product: CountriesAPI
- package: KeyAppKit
product: Onboarding
- package: KeyAppKit
product: Send
- package: KeyAppKit
product: History
- package: KeyAppKit
product: Sell
- package: KeyAppKit
product: Moonpay
- package: KeyAppKit
product: KeyAppBusiness
- package: KeyAppKit
product: Wormhole
- package: KeyAppKit
product: Jupiter
- package: KeyAppKit
product: Repository
- package: KeyAppKit
product: PnLService
- package: BEPureLayout
- package: Lokalise
- package: ReachabilitySwift
product: Reachability
- package: KeychainSwift
- package: SwiftyUserDefaults
- package: Down
- package: Resolver
- package: Kingfisher
- package: PhoneNumberKit
- package: SkeletonUI
- package: Introspect
- package: lottie-spm
product: Lottie
- package: GoogleSignIn
product: GoogleSignIn
- package: GoogleSignIn
product: AppAuth
- package: GoogleSignIn
product: GTMAppAuth
- package: GoogleSignIn
product: GTMSessionFetcher
- package: Sentry
- package: Task_retrying
- package: JazziconSwift
- package: Firebase
product: FirebaseCrashlytics
- package: Firebase
product: FirebaseRemoteConfig
- framework: Frameworks/keyapp.xcframework
embed: false