-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathproject.yml
170 lines (166 loc) · 5.73 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
name: TCA_example # The name of the App
settings:
base:
CODE_SIGN_STYLE: Manual
configs:
Dev Debug: debug
Staging Debug: debug
Production Debug: debug
Dev Release: release
Staging Release: release
Production Release: release
configFiles:
Dev Debug: TCA_example/Config/xcconfigs/dev.xcconfig
Staging Debug: TCA_example/Config/xcconfigs/staging.xcconfig
Production Debug: TCA_example/Config/xcconfigs/production.xcconfig
Dev Release: TCA_example/Config/xcconfigs/dev.xcconfig
Staging Release: TCA_example/Config/xcconfigs/staging.xcconfig
Production Release: TCA_example/Config/xcconfigs/production.xcconfig
options: # Some general settings for the project
createIntermediateGroups: true # If the folders are nested, also nest the groups in Xcode
indentWidth: 4 # indent by 4 spaces
tabWidth: 4 # a tab is 4 spaces
packages:
Alamofire:
url: https://github.com/Alamofire/Alamofire.git
version: 5.9.1
Kingfisher:
url: https://github.com/onevcat/Kingfisher.git
version: 7.11.0
Factory:
url: https://github.com/hmlongco/Factory.git
version: 2.3.2
Rswift:
url: https://github.com/mac-cain13/R.swift.git
version: 7.5.0
ValidatedPropertyKit:
url: https://github.com/SvenTiigi/ValidatedPropertyKit.git
version: 0.0.4
Firebase:
url: https://github.com/firebase/firebase-ios-sdk.git
version: 10.23.1
Defaults:
url: https://github.com/sindresorhus/Defaults.git
version: 8.2.0
Then:
url: https://github.com/devxoul/Then.git
version: 3.0.0
ComposableArchitecture:
url: https://github.com/pointfreeco/swift-composable-architecture.git
version: 1.10.4
FlowStacks:
url: https://github.com/johnpatrickmorgan/FlowStacks.git
version: 0.4.1
targets: # The List of our targets
TCA_example:
type: application
platform: iOS
deploymentTarget: "17.0"
devices: [iPhone]
info:
path: TCA_example/Info.plist
properties:
CFBundleName: $(APP_NAME)
CFBundleVersion: $(APP_BUILD_VERSION)
CFBundleShortVersionString: $(APP_VERSION)
API_ENDPOINT: $(API_ENDPOINT)
API_VERSION: $(API_VERSION)
LSRequiresIPhoneOS: YES
UILaunchScreen:
UIImageName: splash
UIApplicationSupportsIndirectInputEvents: YES
UIApplicationSceneManifest:
UIApplicationSupportsMultipleScenes: YES
UISupportedInterfaceOrientations~iphone: [UIInterfaceOrientationPortrait]
UISupportedInterfaceOrientations~ipad: [UIInterfaceOrientationPortrait]
CFBundleURLTypes:
- CFBundleURLSchemes:
- "testlink"
sources:
#Sources
- path: TCA_example
scheme:
testTargets:
- TCA_exampleTests
gatherCoverageData: true
configVariants:
- Dev
- Staging
- Production
settings:
base:
TARGETED_DEVICE_FAMILY: 1
OTHER_SWIFT_FLAGS: $(inherited) $(SWIFT_FLAGS)
PROVISIONING_PROFILE_SPECIFIER: $(APP_PROVISIONING_PROFILE_SPECIFIER)
MARKETING_VERSION: $(APP_VERSION)
CURRENT_PROJECT_VERSION: $(APP_BUILD_VERSION)
VERSIONING_SYSTEM: Apple Generic
PRODUCT_BUNDLE_IDENTIFIER: $(PRODUCT_BUNDLE_IDENTIFIER)
configs:
Dev Debug:
CODE_SIGN_IDENTITY: iPhone Developer
PROVISIONING_PROFILE_SPECIFIER: Development Provisioning
Dev Release:
CODE_SIGN_IDENTITY: iPhone Distribution
PROVISIONING_PROFILE_SPECIFIER: Distribution Provisioning
Staging Debug:
CODE_SIGN_IDENTITY: iPhone Developer
PROVISIONING_PROFILE_SPECIFIER: Development Provisioning
Staging Release:
CODE_SIGN_IDENTITY: iPhone Distribution
PROVISIONING_PROFILE_SPECIFIER: Distribution Provisioning
Production Debug:
CODE_SIGN_IDENTITY: iPhone Developer
PROVISIONING_PROFILE_SPECIFIER: Development Provisioning
Production Release:
CODE_SIGN_IDENTITY: iPhone Distribution
PROVISIONING_PROFILE_SPECIFIER: Distribution Provisioning
preBuildScripts:
- name: Swiftlint
basedOnDependencyAnalysis: false
script: |
if [[ "$(uname -m)" == arm64 ]]; then
export PATH="/opt/homebrew/bin:$PATH"
fi
if which swiftlint > /dev/null; then
swiftlint
else
echo "warning: SwiftLint not installed, download from https://github.com/realm/SwiftLint"
fi
- name: SwiftFormat
basedOnDependencyAnalysis: false
script: |
if [[ "$(uname -m)" == arm64 ]]; then
export PATH="/opt/homebrew/bin:$PATH"
fi
if which swiftformat > /dev/null; then
swiftformat .
else
echo "warning: SwiftFormat not installed, download from https://github.com/nicklockwood/SwiftFormat"
fi
dependencies:
- package: Alamofire
- package: Kingfisher
- package: Factory
- package: ValidatedPropertyKit
- package: Rswift
product: RswiftLibrary
- package: Firebase
product: FirebaseAuth
- package: Defaults
- package: Then
- package: ComposableArchitecture
- package: FlowStacks
buildToolPlugins:
- plugin: RswiftGenerateInternalResources
package: Rswift
TCA_exampleTests:
type: bundle.unit-test
platform: iOS
deploymentTarget: "17.0"
sources:
- path: TCA_exampleTests
info:
path: TCA_exampleTests/Info.plist
dependencies:
- target: TCA_example