-
Notifications
You must be signed in to change notification settings - Fork 191
Expand file tree
/
Copy pathPackage.swift
More file actions
70 lines (66 loc) · 2.84 KB
/
Package.swift
File metadata and controls
70 lines (66 loc) · 2.84 KB
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
// swift-tools-version:5.9
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
import Foundation
let commonVersion: Version = "24.21.0-SNAPSHOT-03-19--04-59.git-c92cfba"
let coreMapsVersion: Version = "11.21.0-SNAPSHOT-03-19--04-59.git-c92cfba"
let turfVersion: Version = "4.0.0"
let mapboxMapsPath: String? = nil
let package = Package(
name: "MapboxMaps",
defaultLocalization: "en",
// Maps SDK doesn't support macOS but declared the minimum macOS requirement with downstream deps to enable `swift run` cli tools
platforms: [.iOS(.v14), .macOS(.v10_15), .custom("visionos", versionString: "1.0")],
products: [
.library(
name: "MapboxMaps",
targets: ["MapboxMaps"]),
],
dependencies: [
.package(url: "https://github.com/mapbox/turf-swift.git", exact: turfVersion),
.package(url: "https://github.com/mapbox/mapbox-common-ios.git", exact: commonVersion),
.package(url: "https://github.com/mapbox/mapbox-core-maps-ios.git", exact: coreMapsVersion)
],
targets: [
.target(
name: "MapboxMaps",
dependencies: [
.product(name: "Turf", package: "turf-swift"),
.product(name: "MapboxCommon", package: "mapbox-common-ios"),
.product(name: "MapboxCoreMaps", package: "mapbox-core-maps-ios")
],
path: mapboxMapsPath,
exclude: [
"Info.plist",
],
resources: [
.copy("MapboxMaps.json"),
.copy("PrivacyInfo.xcprivacy"),
]
),
.testTarget(
name: "MapboxMapsTests",
dependencies: [
"MapboxMaps",
],
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"),
]
)
]
)