-
Notifications
You must be signed in to change notification settings - Fork 11
/
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.0-beta.2"
let commonChecksum = "63c4d41d55f3cdbf297accb11a7746beee17dc721d7ba4ba5a938ae3daf73da6"
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
)