forked from mapbox/mapbox-maps-ios
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPackage.swift
53 lines (51 loc) · 2.26 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
// 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: "MapboxMaps",
defaultLocalization: "en",
platforms: [.iOS(.v11)],
products: [
.library(
name: "MapboxMaps",
targets: ["MapboxMaps"]),
],
dependencies: [
.package(name: "MapboxCoreMaps", url: "https://github.com/mapbox/mapbox-core-maps-ios.git", .exact("10.0.0-rc.3")),
.package(name: "MapboxMobileEvents", url: "https://github.com/mapbox/mapbox-events-ios.git", .exact("1.0.2")),
.package(name: "MapboxCommon", url: "https://github.com/mapbox/mapbox-common-ios.git", .exact("14.2.0")),
.package(name: "Turf", url: "https://github.com/mapbox/turf-swift.git", .exact("2.0.0-beta.1")),
],
targets: [
.target(
name: "MapboxMaps",
dependencies: ["MapboxCoreMaps", "Turf", "MapboxMobileEvents", "MapboxCommon"],
exclude: [
"Info.plist"
]
),
.testTarget(
name: "MapboxMapsTests",
dependencies: ["MapboxMaps"],
exclude: [
"Info.plist",
"Foundation/Integration Tests/HTTP/HTTPIntegrationTests.swift",
],
resources: [
.copy("Foundation/GeoJSON/Fixtures/point.geojson"),
.copy("Foundation/GeoJSON/Fixtures/multipoint.geojson"),
.copy("Foundation/GeoJSON/Fixtures/multiline.geojson"),
.copy("Foundation/GeoJSON/Fixtures/geometry-collection.geojson"),
.copy("Foundation/GeoJSON/Fixtures/featurecollection.geojson"),
.copy("Foundation/GeoJSON/Fixtures/featurecollection-no-properties.geojson"),
.copy("Foundation/GeoJSON/Fixtures/simple-line.geojson"),
.copy("Foundation/GeoJSON/Fixtures/polygon.geojson"),
.copy("Foundation/GeoJSON/Fixtures/multipolygon.geojson"),
.copy("Helpers/MapboxAccessToken"),
.copy("Resources/empty-style-chicago.json"),
.copy("Resources/Snapshot-Asset.png"),
.process("Resources/MapInitOptionsTests.xib"),
]
)
]
)