Skip to content

Commit

Permalink
Merge pull request #10 from jordansoltman/master
Browse files Browse the repository at this point in the history
Add support for Swift Package Manager
  • Loading branch information
mxcl committed Apr 28, 2021
2 parents d1d4ebd + a44a08c commit 26d1c20
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
// swift-tools-version:5.1

import PackageDescription

let exclude = ["PMKMapKit.h"] + ["MKMapSnapshotter", "MKDirections"].flatMap {
["\($0)+AnyPromise.m", "\($0)+AnyPromise.h"]
}

let package = Package(
name: "PMKMapKit",
platforms: [
.macOS(.v10_10), .iOS(.v8), .tvOS(.v9), .watchOS(.v3)
],
products: [
.library(
name: "PMKMapKit",
targets: ["PMKMapKit"]),
],
dependencies: [
.package(url: "https://github.com/mxcl/PromiseKit.git", from: "6.0.0"),
],
targets: [
.target(
name: "PMKMapKit",
dependencies: ["PromiseKit"],
path: "Sources/MapKit",
exclude: exclude),
.testTarget(
name: "PMKMapKitTests",
dependencies: ["PMKMapKit"],
path: "Tests"),
]
)

0 comments on commit 26d1c20

Please sign in to comment.