forked from mapbox/mapbox-maps-ios
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Package.swift
60 lines (58 loc) · 2.59 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
// swift-tools-version:5.4
// 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.7.0-rc.1")),
.package(name: "MapboxCommon", url: "https://github.com/mapbox/mapbox-common-ios.git", .exact("22.1.0-rc.1")),
.package(name: "MapboxMobileEvents", url: "https://github.com/mapbox/mapbox-events-ios.git", .exact("1.0.8")),
.package(name: "Turf", url: "https://github.com/SharperShape/turf-swift.git", .branch("v2-new")),
.package(name: "CocoaImageHashing", url: "https://github.com/ameingast/cocoaimagehashing", .exact("1.9.0"))
],
targets: [
.target(
name: "MapboxMaps",
dependencies: ["MapboxCoreMaps", "Turf", "MapboxMobileEvents", "MapboxCommon"],
exclude: [
"Info.plist"
],
resources: [
.copy("MapboxMaps.json")
]
),
.testTarget(
name: "MapboxMapsTests",
dependencies: ["MapboxMaps", "CocoaImageHashing"],
exclude: [
"Info.plist",
"Integration Tests/HTTP/HTTPIntegrationTests.swift",
],
resources: [
.copy("MigrationGuide/Fixtures/polygon.geojson"),
.copy("Helpers/MapboxAccessToken"),
.copy("Resources/empty-style-chicago.json"),
.copy("Snapshot/testDoesNotShowAttribution().png"),
.copy("Snapshot/testDoesNotShowLogo().png"),
.copy("Snapshot/testDoesNotShowLogoAndAttribution().png"),
.copy("Snapshot/testShowsLogoAndAttribution().png"),
.copy("Snapshot/testSnapshotAttribution-100.png"),
.copy("Snapshot/testSnapshotAttribution-150.png"),
.copy("Snapshot/testSnapshotAttribution-200.png"),
.copy("Snapshot/testSnapshotAttribution-250.png"),
.copy("Snapshot/testSnapshotAttribution-300.png"),
.copy("Snapshot/testSnapshotAttribution-50.png"),
.copy("Snapshot/testSnapshotLogoVisibility.png"),
.copy("Snapshot/testSnapshotOverlay.png"),
.process("Resources/MapInitOptionsTests.xib"),
]
)
]
)