forked from AndrewBennet/ReadingListV1
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathproject.yml
174 lines (165 loc) · 5.44 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
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
minorVersion: 22.1.0
SwiftyStoreKit:
url: https://github.com/bizz84/SwiftyStoreKit
minorVersion: 0.16.0
Swifter:
url: https://github.com/httpswift/swifter
branch: stable
Eureka:
url: https://github.com/xmartlabs/Eureka.git
minorVersion: 5.3.0
ImageRow:
url: https://github.com/EurekaCommunity/ImageRow
branch: master
WhatsNewKit:
url: https://github.com/SvenTiigi/WhatsNewKit
minorVersion: 1.3.5
PersistedPropertyWrapper:
url: https://github.com/AndrewBennet/PersistedPropertyWrapper.git
minorVersion: 1.2.0
Regex:
url: https://github.com/sharplet/Regex.git
minorVersion: 2.1.1
fileGroups:
- Debug/
- fastlane/
- README.md
- Podfile
- project.yml
targets:
ReadingList:
type: application
platform: iOS
deploymentTarget: 12.0
sources:
- path: ReadingList
excludes:
- Debug
- path: ReadingListWidget/WidgetKind.swift
scheme:
testTargets:
- ReadingList_UnitTests
- ReadingList_UITests
dependencies:
- sdk: StoreKit.framework
- target: ReadingList_Foundation
- target: ReadingListWidget
- package: Cosmos
- package: SwiftyStoreKit
- package: Eureka
- package: ImageRow
- package: WhatsNewKit
- package: PersistedPropertyWrapper
- package: Regex
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: "[CP] Embed Pods Frameworks"
script:
- name: Run Crashlytics Script
inputFiles: [$(BUILT_PRODUCTS_DIR)/$(INFOPLIST_PATH)]
script: |
"${PODS_ROOT}/FirebaseCrashlytics/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
configs:
Debug:
# Stupid build errors from Firebase without this. Prevents Debug build being deployed to devices though...
EXCLUDED_ARCHS[sdk=iphonesimulator*]: arm64
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_Foundation:
type: framework
platform: iOS
deploymentTarget: 12.0
sources: [ReadingList_Foundation]
ReadingList_UnitTests:
type: bundle.unit-test
platform: iOS
deploymentTarget: 12.0
sources: [ReadingList_UnitTests]
dependencies:
- target: ReadingList
ReadingList_UITests:
type: bundle.ui-testing
platform: iOS
deploymentTarget: 12.0
sources:
- path: ReadingList_UITests
- path: ReadingList/Api/GoogleBooksRequest.swift
dependencies:
- target: ReadingList
- package: Swifter
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)"