Skip to content

Commit 26d1c20

Browse files
authored
Merge pull request #10 from jordansoltman/master
Add support for Swift Package Manager
2 parents d1d4ebd + a44a08c commit 26d1c20

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

Package.swift

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
// swift-tools-version:5.1
2+
3+
import PackageDescription
4+
5+
let exclude = ["PMKMapKit.h"] + ["MKMapSnapshotter", "MKDirections"].flatMap {
6+
["\($0)+AnyPromise.m", "\($0)+AnyPromise.h"]
7+
}
8+
9+
let package = Package(
10+
name: "PMKMapKit",
11+
platforms: [
12+
.macOS(.v10_10), .iOS(.v8), .tvOS(.v9), .watchOS(.v3)
13+
],
14+
products: [
15+
.library(
16+
name: "PMKMapKit",
17+
targets: ["PMKMapKit"]),
18+
],
19+
dependencies: [
20+
.package(url: "https://github.com/mxcl/PromiseKit.git", from: "6.0.0"),
21+
],
22+
targets: [
23+
.target(
24+
name: "PMKMapKit",
25+
dependencies: ["PromiseKit"],
26+
path: "Sources/MapKit",
27+
exclude: exclude),
28+
.testTarget(
29+
name: "PMKMapKitTests",
30+
dependencies: ["PMKMapKit"],
31+
path: "Tests"),
32+
]
33+
)

0 commit comments

Comments
 (0)