-
Notifications
You must be signed in to change notification settings - Fork 48
/
Copy pathproject.yml
200 lines (191 loc) · 6.75 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
name: ReadingList
options:
groupSortPosition: top
usesTabs: false
indentWith: 4
bundleIdPrefix: com.andrewbennet
groupOrdering:
- order: [ReadingList, ReadingList_Foundation, ReadingList_UITests, ReadingList_UnitTests, ReadingListWidget, Debug, fastlane]
packages:
Cosmos:
url: https://github.com/evgenyneu/Cosmos.git
minorVersion: 23.0.0
SwiftyStoreKit:
url: https://github.com/bizz84/SwiftyStoreKit.git
minorVersion: 0.16.0
Swifter:
url: https://github.com/httpswift/swifter.git
branch: stable
Eureka:
url: https://github.com/xmartlabs/Eureka.git
minorVersion: 5.3.0
ImageRow:
url: https://github.com/EurekaCommunity/ImageRow.git
branch: master
WhatsNewKit:
url: https://github.com/SvenTiigi/WhatsNewKit.git
minorVersion: 1.3.5
PersistedPropertyWrapper:
url: https://github.com/AndrewBennet/PersistedPropertyWrapper.git
branch: master
Regex:
url: https://github.com/sharplet/Regex.git
minorVersion: 2.1.1
Firebase:
url: https://github.com/firebase/firebase-ios-sdk.git
minorVersion: 7.2.0
Promises:
url: https://github.com/google/promises.git
minorVersion: 1.2.0
CHCSVParser:
url: https://github.com/AndrewBennet/CHCSVParser.git # Fork with SPM support
branch: master
SVProgressHUD:
url: https://github.com/sereivoanyong/SVProgressHUD.git # Fork with SPM support
branch: master
ZIPFoundation:
url: https://github.com/weichsel/ZIPFoundation.git
minorVersion: 0.9.0
fileGroups:
- Debug/
- fastlane/
- README.md
- project.yml
targets:
ReadingList:
type: application
platform: iOS
deploymentTarget: 13.2
sources:
- path: ReadingList
excludes:
- Debug
- path: ReadingList_Foundation
- path: ReadingListWidget/WidgetKind.swift
scheme:
testTargets:
- ReadingList_UnitTests
- ReadingList_UITests
postActions:
# See https://github.com/firebase/firebase-ios-sdk/issues/6472#issuecomment-694449182
- settingsTarget: ReadingList
script: |
rm -rf "${TARGET_BUILD_DIR}/${PRODUCT_NAME}.app/Frameworks/FirebaseAnalytics.framework"
"${TARGET_BUILD_DIR}/${PRODUCT_NAME}.app/Frameworks/GoogleAppMeasurement.framework"
"${TARGET_BUILD_DIR}/${PRODUCT_NAME}.app/Frameworks/FIRAnalyticsConnector.framework"
"${TARGET_BUILD_DIR}/${PRODUCT_NAME}.app/PlugIns/FirebaseAnalytics.framework"
"${TARGET_BUILD_DIR}/${PRODUCT_NAME}.app/PlugIns/GoogleAppMeasurement.framework"
"${TARGET_BUILD_DIR}/${PRODUCT_NAME}.app/PlugIns/FIRAnalyticsConnector.framework"
dependencies:
- sdk: StoreKit.framework
- target: ReadingListWidget
- package: Cosmos
- package: SwiftyStoreKit
- package: Eureka
- package: ImageRow
- package: WhatsNewKit
- package: PersistedPropertyWrapper
- package: Regex
- package: Promises
- package: CHCSVParser
- package: SVProgressHUD
- package: ZIPFoundation
- package: Firebase
product: FirebaseCrashlytics
- package: Firebase
product: FirebaseAnalytics
preBuildScripts:
- name: SwiftLint
script: |
if [[ -z $CI ]]; then
"/usr/local/bin/swiftlint" --path "${PROJECT_DIR}"
fi
postBuildScripts:
- name: "Copy Debug Files"
script: |
BUILD_APP_DIR=${BUILT_PRODUCTS_DIR}/${FULL_PRODUCT_NAME}
if [ "$CONFIGURATION" == "Debug" ]; then
cp "$SRCROOT/Debug/examplebooks.csv" "$BUILD_APP_DIR/examplebooks.csv"
cp "$SRCROOT/Debug/example_barcode.jpg" "$BUILD_APP_DIR/example_barcode.jpg"
fi
- name: Run Crashlytics Script
inputFiles: [$(BUILT_PRODUCTS_DIR)/$(INFOPLIST_PATH)]
script: |
"${BUILD_DIR%Build/*}SourcePackages/checkouts/firebase-ios-sdk/Crashlytics/run"
settings:
base:
CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED: YES
CODE_SIGN_STYLE: Manual
CODE_SIGN_ENTITLEMENTS: ReadingList/ReadingList.entitlements
DEBUG_INFORMATION_FORMAT: dwarf-with-dsym
DEVELOPMENT_TEAM: YPDEV2E775
PRODUCT_BUNDLE_IDENTIFIER: com.andrewbennet.books
OTHER_LDFLAGS: -ObjC
configs:
Debug:
PROVISIONING_PROFILE_SPECIFIER: match Development com.andrewbennet.books
OTHER_SWIFT_FLAGS: $(inherited) "-D" "DEBUG"
Release:
PROVISIONING_PROFILE_SPECIFIER: match AppStore com.andrewbennet.books
CODE_SIGN_IDENTITY[sdk=iphoneos*]: "Apple Distribution: Andrew Bennet (YPDEV2E775)"
OTHER_SWIFT_FLAGS: $(inherited) "-D" "RELEASE"
attributes:
SystemCapabilities:
com.apple.iCloud:
enabled: 1
com.apple.InAppPurchase:
enabled: 1
ReadingList_UnitTests:
type: bundle.unit-test
platform: iOS
deploymentTarget: 13.2
sources: [ReadingList_UnitTests]
dependencies:
- target: ReadingList
ReadingList_UITests:
type: bundle.ui-testing
platform: iOS
deploymentTarget: 13.2
sources:
- path: ReadingList_UITests
- path: ReadingList/Api/GoogleBooksRequest.swift
- path: ReadingList_Foundation/LanguageIso639_1.swift
dependencies:
- target: ReadingList
- package: Swifter
- package: Promises
scheme:
testTargets:
- ReadingList_UITests
ReadingListWidget:
type: app-extension
platform: iOS
deploymentTarget: 14.0
sources:
- path: ReadingListWidget
- path: ReadingList/Data/SharedBookData.swift
- path: ReadingList/Startup/ProprietaryURLManager.swift
dependencies:
- sdk: SwiftUI.framework
- sdk: WidgetKit.framework
- package: PersistedPropertyWrapper
postBuildScripts:
- name: "Copy Debug Files"
script: |
BUILD_APP_DIR=${BUILT_PRODUCTS_DIR}/${FULL_PRODUCT_NAME}
if [ "$CONFIGURATION" == "Debug" ]; then
cp "$SRCROOT/Debug/shared_current-books.json" "$BUILD_APP_DIR/shared_current-books.json"
cp "$SRCROOT/Debug/shared_finished-books.json" "$BUILD_APP_DIR/shared_finished-books.json"
fi
settings:
base:
PRODUCT_BUNDLE_IDENTIFIER: com.andrewbennet.books.ReadingListWidget
DEVELOPMENT_TEAM: YPDEV2E775
CODE_SIGN_ENTITLEMENTS: ReadingListWidget/ReadingListWidget.entitlements
configs:
Debug:
CODE_SIGN_STYLE: Automatic
Release:
CODE_SIGN_STYLE: Manual
PROVISIONING_PROFILE_SPECIFIER: match AppStore com.andrewbennet.books.ReadingListWidget
CODE_SIGN_IDENTITY[sdk=iphoneos*]: "Apple Distribution: Andrew Bennet (YPDEV2E775)"