-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathPackage.swift
37 lines (33 loc) · 1.22 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
// 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 = "24.10.1"
let commonChecksum = "49b24e8b2def452aca40f8ecb3f3986a7d242dda295dd7af8ad4be3c96a8bb5f"
let turfVersion: Version = "4.0.0"
let package = Package(
name: "MapboxCommon",
platforms: [.iOS(.v12), .macOS(.v10_15), .custom("visionos", versionString: "1.0")],
products: [
.library(name: "MapboxCommon", targets: ["MapboxCommonWrapper"]),
],
dependencies: [
.package(url: "https://github.com/mapbox/turf-swift.git", exact: turfVersion)
],
targets: [
.target(name: "MapboxCommonWrapper", dependencies: [
.product(name: "Turf", package: "turf-swift"),
.target(name: "MapboxCommon")
]),
.binaryTarget(
name: "MapboxCommon",
url: "https://api.mapbox.com/downloads/v2/mapbox-common/releases/ios/packages/\(commonVersion)/MapboxCommon.zip",
checksum: commonChecksum
),
.testTarget(
name: "MapboxCommonTests",
dependencies: ["MapboxCommon"]
)
],
cxxLanguageStandard: .cxx17
)