forked from mapbox/mapbox-navigation-ios
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Package.swift
110 lines (108 loc) · 3.75 KB
/
Package.swift
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
// swift-tools-version:5.3
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
let package = Package(
name: "MapboxNavigation",
defaultLocalization: "en",
platforms: [.iOS(.v11)],
products: [
.library(
name: "MapboxCoreNavigation",
targets: [
"MapboxCoreNavigation",
]
),
.library(
name: "MapboxNavigation",
targets: [
"MapboxNavigation",
]
)
],
dependencies: [
.package(name: "MapboxDirections", url: "https://github.com/mapbox/mapbox-directions-swift.git", from: "2.1.0"),
.package(name: "MapboxMobileEvents", url: "https://github.com/mapbox/mapbox-events-ios.git", from: "1.0.0"),
.package(name: "MapboxNavigationNative", url: "https://github.com/mapbox/mapbox-navigation-native-ios.git", from: "80.0.0"),
.package(name: "MapboxMaps", url: "https://github.com/mapbox/mapbox-maps-ios.git", from: "10.1.1"),
.package(name: "Solar", url: "https://github.com/ceeK/Solar.git", from: "3.0.0"),
.package(name: "MapboxSpeech", url: "https://github.com/mapbox/mapbox-speech-swift.git", from: "2.0.0"),
.package(name: "Quick", url: "https://github.com/Quick/Quick.git", from: "3.1.2"),
.package(name: "Nimble", url: "https://github.com/Quick/Nimble.git", from: "9.0.1"),
.package(name: "SnapshotTesting", url: "https://github.com/pointfreeco/swift-snapshot-testing.git", from: "1.8.1"),
.package(name: "OHHTTPStubs", url: "https://github.com/AliSoftware/OHHTTPStubs.git", from: "9.1.0"),
],
targets: [
.target(
name: "MapboxCoreNavigation",
dependencies: [
"MapboxDirections",
"MapboxMobileEvents",
"MapboxNavigationNative",
],
exclude: ["Info.plist"],
resources: [.copy("MBXInfo.plist")]),
.target(
name: "MapboxNavigation",
dependencies: [
"MapboxCoreNavigation",
"MapboxDirections",
"MapboxMaps",
"MapboxSpeech",
"Solar",
],
exclude: ["Info.plist"],
resources: [.copy("MBXInfo.plist")]),
.target(
name: "CTestHelper",
dependencies: [
"MapboxMobileEvents",
"MapboxCoreNavigation",
]),
.target(
name: "TestHelper",
dependencies: [
"CTestHelper",
"Quick",
"Nimble",
"MapboxCoreNavigation",
"MapboxNavigation",
"MapboxMaps",
],
exclude: ["Info.plist"],
resources: [
.process("Fixtures"),
.process("tiles"),
]
),
.target(
name: "CarPlayTestHelper",
exclude: [
"Info.plist",
"CarPlayTestHelper.h",
]
),
.testTarget(
name: "MapboxCoreNavigationTests",
dependencies: ["TestHelper"],
exclude: ["Info.plist"],
resources: [
.process("Fixtures"),
]
),
.testTarget(
name: "MapboxNavigationTests",
dependencies: [
"MapboxNavigation",
"Quick",
"TestHelper",
"OHHTTPStubs",
"CarPlayTestHelper",
"SnapshotTesting",
],
exclude: [
"Info.plist",
"__Snapshots__", // Ignore snapshots folder
]
),
]
)