forked from mapbox/mapbox-maps-ios
-
Notifications
You must be signed in to change notification settings - Fork 0
/
project.yml
253 lines (240 loc) · 7.23 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
# yaml-language-server: $schema=https://raw.githubusercontent.com/Kila2/XcodeGen/master/Assets/json-schema/project.json
name: MapboxMaps
configFiles:
Debug: Configurations/base.xcconfig
Release: Configurations/base.xcconfig
options:
bundleIdPrefix: com.mapbox
defaultConfig: Release
xcodeVersion: "15.0"
parallelizeBuild: false
groupOrdering:
- order:
- General
- Examples
- DebugApp
- MapboxMaps
- MapboxMapsTests
preGenCommand: scripts/prepare_binary_dependencies.sh
packages:
Fingertips:
url: [email protected]:mapbox/Fingertips.git
from: 0.6.0
Hammer:
url: [email protected]:lyft/Hammer.git
from: 0.14.3
settings:
base:
DEVELOPMENT_TEAM: GJZR2MEM28
TARGETED_DEVICE_FAMILY: 1,2
MAPBOXMAPS_PATH: .
targets:
MapboxMaps:
type: framework
platform: iOS
templates:
- maps-dependencies
settings:
base:
PRODUCT_BUNDLE_IDENTIFIER: com.mapbox.MapboxMaps
SKIP_INSTALL: "NO"
LD_RUNPATH_SEARCH_PATHS: $(inherited) @executable_path/Frameworks @loader_path/Frameworks
SWIFT_EMIT_PRIVATE_MODULE_INTERFACE: YES
RUN_DOCUMENTATION_COMPILER: YES
OTHER_DOCC_FLAGS: "--warnings-as-errors"
configs:
Debug:
SWIFT_ACTIVE_COMPILATION_CONDITIONS: $(inherited) USING_TURF_WITH_LIBRARY_EVOLUTION
Release:
SWIFT_ACTIVE_COMPILATION_CONDITIONS: $(inherited) RELEASE USING_TURF_WITH_LIBRARY_EVOLUTION
configFiles:
Debug: "Configurations/base.xcconfig"
Release: "Configurations/base.xcconfig"
sources:
- path: "Sources/MapboxMaps/"
excludes:
- "**/*.plist"
- "**/*.h"
- "**/.swiftlint.yml"
- path: "Sources/MapboxMaps/MapboxMaps.h"
- path: .
excludes:
- "**/*.xcodeproj"
- Apps
- Carthage/Checkouts
- .build
buildPhase: none
group: General
MapboxMapsTests:
templates:
- installTokenScript
- unit-test
settings:
base:
GENERATE_INFOPLIST_FILE: YES
PRODUCT_BUNDLE_IDENTIFIER: "com.mapbox.MapboxTests"
sources: Tests/MapboxMapsTests
dependencies:
- target: MapboxTestHost
GestureTests:
templates:
- installTokenScript
- unit-test
settings:
base:
PRODUCT_BUNDLE_IDENTIFIER: "com.mapbox.MapboxTests"
IPHONEOS_DEPLOYMENT_TARGET: 13.0
GENERATE_INFOPLIST_FILE: YES
sources:
- path: "Tests/MapboxMapsTests"
includes:
- "Integration Tests/MapViewIntegrationTestCase.swift"
- "Integration Tests/IntegrationTestCase.swift"
- "Helpers/Bundle+MapboxMapsTests.swift"
- "Helpers/String+FileSystemSafe.swift"
- "Helpers/XCTestCase+GuardForMetalDevice.swift"
- "Helpers/XCTestCase+MapboxAccessToken.swift"
- "Helpers/XCTestCase+TemporaryCacheDirectory.swift"
- path: Tests/GestureTests
dependencies:
- target: MapboxTestHost
- package: Hammer
MapboxTestHost:
templates:
- installTokenScript
- assetCatalog
- application
platform: iOS
deploymentTarget: 12.0
settings:
base:
PRODUCT_BUNDLE_IDENTIFIER: "com.mapbox.MapboxMapsTestHost"
GENERATE_INFOPLIST_FILE: YES
INFOPLIST_KEY_CFBundleDisplayName: Test Host
INFOPLIST_KEY_UIMainStoryboardFile: Main
INFOPLIST_KEY_UILaunchScreen_Generation: YES
INFOPLIST_KEY_UISupportedInterfaceOrientations: UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad: UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight
sources:
- path: Sources/MapboxTestHost
scheme:
testTargets:
- MapboxMapsTests
- GestureTests
gatherCoverageData: true
coverageTargets:
- MapboxMaps
Examples:
templates:
- installTokenScript
- assetCatalog
- application
type: application
platform: iOS
settings:
base:
PRODUCT_BUNDLE_IDENTIFIER: com.mapbox.examples
SWIFT_OBJC_BRIDGING_HEADER: $(MAPBOXMAPS_PATH)/Apps/Examples/Examples/Examples-Bridging-Header.h
scheme:
testTargets:
- MapboxMapsTests
- ExamplesTests
- ExamplesUITests
gatherCoverageData: true
coverageTargets:
- MapboxMaps
environmentVariables:
- variable: MTL_HUD_ENABLED
value: 1
- variable: MAPBOX_MAPS_SIGNPOSTS_ENABLED
value: 1
isEnabled: false
- variable: MAPBOX_REOPEN_EXAMPLE
value: 1
sources:
- path: Apps/Examples/Examples/
ExamplesTests:
templates:
- installTokenScript
- unit-test
settings:
base:
GENERATE_INFOPLIST_FILE: YES
PRODUCT_BUNDLE_IDENTIFIER: "com.mapbox.MapboxTests"
sources:
- path: "Tests/ExamplesTests"
dependencies:
- target: Examples
ExamplesUITests:
templates:
- unit-test
type: bundle.ui-testing
settings:
base:
GENERATE_INFOPLIST_FILE: YES
PRODUCT_BUNDLE_IDENTIFIER: "mapbox.ExamplesUITests"
sources: Tests/ExamplesUITests
dependencies:
- target: Examples
targetTemplates:
maps-dependencies:
dependencies:
- framework: Carthage/Build/MapboxCoreMaps.xcframework
- framework: Carthage/Build/Turf.xcframework
- framework: Carthage/Build/MapboxCommon.xcframework
installTokenScript:
settings:
base:
INFOPLIST_PREFIX_HEADER: $(DERIVED_FILE_DIR)/InfoPlist.Prefix.h
INFOPLIST_PREPROCESS: YES
preBuildScripts:
- path: scripts/insert_access_token.sh
name: Insert Mapbox Access Token
showEnvVars: false
basedOnDependencyAnalysis: false
outputFiles:
- $(INFOPLIST_PREFIX_HEADER)
assetCatalog:
settings:
ASSETCATALOG_COMPILER_APPICON_NAME: AppIcon
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME: AccentColor
application:
templates:
- swiftlint-script
- maps-dependencies
type: application
platform: iOS
configFiles:
Debug: "Configurations/apps.xcconfig"
Release: "Configurations/apps.xcconfig"
settings:
base:
CURRENT_PROJECT_VERSION: "1"
MARKETING_VERSION: "1.0.0"
dependencies:
- target: MapboxMaps
- package: Fingertips
unit-test:
templates:
- installTokenScript
type: bundle.unit-test
platform: iOS
settings:
base:
LD_RUNPATH_SEARCH_PATHS: "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"
configFiles:
Debug: Configurations/unitTests.xcconfig
Release: Configurations/unitTests.xcconfig
swiftlint-script:
postBuildScripts:
- script: |
if [[ -f "scripts/run_swiftlint.sh" ]]; then
scripts/run_swiftlint.sh
elif [[ -f "mapbox-maps-ios/scripts/run_swiftlint.sh" ]]; then
mapbox-maps-ios/scripts/run_swiftlint.sh
else
find . -name "run_swiftlint.sh" -exec {} \; -quit
fi
name: Run swiftlint
basedOnDependencyAnalysis: false
showEnvVars: false