forked from mapbox/mapbox-navigation-ios
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Package.swift
107 lines (105 loc) · 3.69 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
// swift-tools-version:5.5
// 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(.v12)],
products: [
.library(
name: "MapboxCoreNavigation",
targets: [
"MapboxCoreNavigation",
]
),
.library(
name: "MapboxNavigation",
targets: [
"MapboxNavigation",
]
)
],
dependencies: [
.package(name: "MapboxDirections", url: "https://github.com/mapbox/mapbox-directions-swift.git", .exact("2.9.0-rc.2")),
.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: "123.1.0"),
.package(name: "MapboxMaps", url: "https://github.com/mapbox/mapbox-maps-ios.git", from: "10.10.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: "CwlPreconditionTesting", url: "https://github.com/mattgallagher/CwlPreconditionTesting.git", from: "2.1.0"),
.package(name: "SnapshotTesting", url: "https://github.com/pointfreeco/swift-snapshot-testing.git", .exact("1.9.0")),
.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("Resources/MBXInfo.plist")]),
.target(
name: "MapboxNavigation",
dependencies: [
"MapboxCoreNavigation",
"MapboxDirections",
"MapboxMaps",
"MapboxSpeech",
"Solar",
],
exclude: ["Info.plist"],
resources: [.copy("Resources/MBXInfo.plist")]),
.target(
name: "CTestHelper",
dependencies: [
"MapboxMobileEvents",
"MapboxCoreNavigation",
]),
.target(
name: "TestHelper",
dependencies: [
"CTestHelper",
"CwlPreconditionTesting",
"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",
"TestHelper",
"OHHTTPStubs",
"CarPlayTestHelper",
"SnapshotTesting",
],
exclude: [
"Info.plist",
"__Snapshots__", // Ignore snapshots folder
]
),
]
)