forked from mapbox/mapbox-maps-ios
-
Notifications
You must be signed in to change notification settings - Fork 0
/
project.yml
122 lines (121 loc) · 4.05 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
---
name: MapboxMaps
configFiles:
Debug: Configurations/base.xcconfig
Release: Configurations/base.xcconfig
options:
defaultConfig: Release
parallelizeBuild: false
xcodeVersion: "1300"
packages:
MapboxMaps:
path: ./
settings:
base:
VALIDATE_WORKSPACE: "NO"
COPY_PHASE_STRIP: "NO"
GCC_WARN_64_TO_32_BIT_CONVERSION: $(GCC_WARN_64_TO_32_BIT_CONVERSION)
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER: "YES"
MTL_FAST_MATH: "YES"
configs:
Debug:
ONLY_ACTIVE_ARCH: "YES"
DEBUG_INFORMATION_FORMAT: dwarf
ENABLE_TESTABILITY: "YES"
MTL_ENABLE_DEBUG_INFO: INCLUDE_SOURCE
Release:
DEBUG_INFORMATION_FORMAT: dwarf-with-dsym
VALIDATE_PRODUCT: "YES"
ENABLE_NS_ASSERTIONS: "NO"
SWIFT_COMPILATION_MODE: wholemodule
MTL_ENABLE_DEBUG_INFO: "NO"
targets:
MapboxMapsTestsWithHost:
type: bundle.unit-test
platform: iOS
settings:
base:
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES: "YES"
TARGETED_DEVICE_FAMILY: "1,2"
LD_RUNPATH_SEARCH_PATHS: "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"
INFOPLIST_FILE: "Tests/MapboxMapsTests/Info.plist"
PRODUCT_BUNDLE_IDENTIFIER: "com.mapbox.MapboxTests"
PRODUCT_NAME: "$(TARGET_NAME)"
CODE_SIGN_STYLE: "Automatic"
COMPRESS_PNG_FILES: "NO"
STRIP_PNG_TEXT: "NO"
configFiles:
Debug: Configurations/unitTests.xcconfig
Release: Configurations/unitTests.xcconfig
sources:
- path: "Tests/MapboxMapsTests"
excludes:
- "Integration Tests/HTTP/HTTPIntegrationTests.swift"
dependencies:
- target: MapboxTestHost
postBuildScripts:
- path: scripts/insert_access_token.sh
name: Insert Mapbox Token
inputFiles:
- $(TARGET_BUILD_DIR)/$(INFOPLIST_PATH)
MapboxMapsHTTPTestsWithHost:
type: bundle.unit-test
platform: iOS
settings:
base:
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES: "YES"
TARGETED_DEVICE_FAMILY: "1,2"
LD_RUNPATH_SEARCH_PATHS: "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"
INFOPLIST_FILE: "Tests/MapboxMapsTests/Info.plist"
PRODUCT_BUNDLE_IDENTIFIER: "com.mapbox.MapboxTests"
PRODUCT_NAME: "$(TARGET_NAME)"
CODE_SIGN_STYLE: "Automatic"
configFiles:
Debug: Configurations/unitTests.xcconfig
Release: Configurations/unitTests.xcconfig
sources:
- path: "Tests/MapboxMapsTests"
includes:
- "Integration Tests/HTTP/HTTPIntegrationTests.swift"
- "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"
dependencies:
- target: MapboxTestHost
postBuildScripts:
- path: scripts/insert_access_token.sh
name: Insert Mapbox Token
inputFiles:
- $(TARGET_BUILD_DIR)/$(INFOPLIST_PATH)
MapboxTestHost:
type: application
platform: iOS
deploymentTarget: "11.0"
settings:
base:
ENABLE_BITCODE: "NO"
TARGETED_DEVICE_FAMILY: "1,2"
LD_RUNPATH_SEARCH_PATHS: "$(inherited) @executable_path/Frameworks"
INFOPLIST_FILE: "MapboxTestHost/Info.plist"
PRODUCT_BUNDLE_IDENTIFIER: "com.mapbox.MapboxMapsTestHost"
PRODUCT_NAME: "$(TARGET_NAME)"
SYSTEM_FRAMEWORK_SEARCH_PATHS: "$(PLATFORM_DEVELOPER_LIBRARY_DIR)/PrivateFrameworks"
CODE_SIGN_STYLE: "Automatic"
ASSETCATALOG_COMPILER_APPICON_NAME: "AppIcon"
SWIFT_VERSION: "5.0"
sources:
- path: MapboxTestHost
dependencies:
- package: MapboxMaps
product: MapboxMaps
- package: MapboxMaps
product: CocoaImageHashing
scheme:
testTargets:
- MapboxMapsHTTPTestsWithHost
- MapboxMapsTestsWithHost
gatherCoverageData: true