-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathproject.yml
164 lines (150 loc) · 4.01 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
name: NetflixClone
options:
deploymentTarget:
iOS: '18.0'
createIntermediateGroups: true
xcodeVersion: 15.4
packages:
SDWebImageSwiftUI:
url: https://github.com/SDWebImage/SDWebImageSwiftUI.git
from: "2.2.6"
# SETTINGS
settings:
base:
ALWAYS_SEARCH_USER_PATHS: NO
BUILD_LIBRARY_FOR_DISTRIBUTION: YES
CODE_SIGN_IDENTITY: iPhone Developer
CODE_SIGN_IDENTITY[sdk=iphoneos*]: iPhone Developer
CODE_SIGN_STYLE: Manual
CURRENT_PROJECT_VERSION: 1
ENABLED_BITCODE: NO
ENABLE_TESTABILITY: NO
IPHONEOS_DEPLOYMENT_TARGET: 18.0
MARKETING_VERSION: 1.0.0
ONLY_ACTIVE_ARCH: YES
PRODUCT_NAME: $(TARGET_NAME)
PROVISIONING_PROFILE:
PROVISIONING_PROFILE_SPECIFIER:
SKIP_INSTALL: NO
# SCHEMES
schemes:
NetflixCloneSample:
build:
targets:
NetflixCloneSample: all
run:
additionalOptions:
zoobinObjects: true
commandLineArguments:
"-FIRDebugEnabled" : true
"-FIRAnalyticsDebugEnabled" : true
config: Debug
debugEnabled: true
NetflixClone:
build:
targets:
NetflixClone: all
NetflixCloneTests: [test]
NetflixCloneUITests: [test]
test:
gatherCoverageData: true
coverageTargets:
- NetflixClone
targets:
- name: NetflixCloneTests
parallelizable: false
environmentVariables:
- variable: FB_REFERENCE_IMAGE_DIR
value: $(SOURCE_ROOT)/NetflixCloneTests/ReferenceImages
isEnabled: true
- variable: IMAGE_DIFF_DIR
value: $(SOURCE_ROOT)/NetflixCloneTests/FailureDiffs
isEnabled: true
NetflixCloneUITests:
build:
targets:
NetflixCloneUITests: all
test:
gatherCoverageData: true
targets:
- name: NetflixCloneUITests
parallelizable: false
# TARGETS
targets:
NetflixCloneSample:
type: application
platform: iOS
sources:
- path: NetflixCloneSample
name: NetflixCloneSample
settings:
base:
INFOPLIST_FILE: NetflixCloneSample/Info.plist
PRODUCT_BUNDLE_IDENTIFIER: com.vitorneves.NetflixCloneSample
CODE_SIGN_STYLE: Manual
CODE_SIGN_IDENTITY: iPhone Developer
CODE_SIGN_IDENTITY[sdk=iphoneos*]: iPhone Developer
PROVISIONING_PROFILE:
PROVISIONING_PROFILE_SPECIFIER:
BUILD_LIBRARY_FOR_DISTRIBUTION: NO
dependencies:
- target: NetflixClone
codeSign: true
embed: true
postBuildScript:
- script: scripts/swiftlint.sh
name: Swiftlint
NetflixClone:
type: framework
platform: iOS
dependencies:
- package: SDWebImageSwiftUI
sources:
- path: NetflixClone
settings:
base:
INFOPLIST_FILE: NetflixClone/Info.plist
PRODUCT_BUNDLE_IDENTIFIER: com.vitorneves.NetflixClone
ENABLE_TESTABILITY: YES
BUILD_LIBRARY_FOR_DISTRIBUTION: YES
postBuildScript:
- script: scripts/swiftlint.sh
name: Swiftlint
NetflixCloneTests:
type: bundle.unit-test
platform: iOS
dependencies:
- target: NetflixClone
embed: true
sources:
- path: NetflixCloneTests
excludes:
- "FailureDiffs/*"
- "ReferenceImages/*"
- "ReferenceImages_64/*"
name: NetflixCloneTests
postBuildScript:
- script: scripts/swiftlint.sh
name: Swiftlint
settings:
base:
INFOPLIST_FILE: NetflixCloneTests/Info.plist
PRODUCT_BUNDLE_IDENTIFIER: com.vitorneves.NetflixCloneTests
NetflixCloneUITests:
type: bundle.ui-testing
platform: iOS
dependencies:
- target: NetflixCloneSample
embed: true
sources:
- path: NetflixCloneUITests
name: NetflixCloneUITests
settings:
base:
INFOPLIST_FILE: NetflixCloneUITests/Info.plist
PRODUCT_BUNDLE_IDENTIFIER: com.vitorneves.NetflixCloneUITests
aggregateTargets:
XCFramework:
buildScripts:
- script: scripts/buildxcframework.sh
name: Generate XCFramework