24 lines
600 B
Swift
24 lines
600 B
Swift
import PackageDescription
|
|
|
|
let package = Package(
|
|
name: "PMKFoundation",
|
|
dependencies: [
|
|
.Package(url: "https://github.com/mxcl/PromiseKit.git", majorVersion: 6)
|
|
],
|
|
swiftLanguageVersions: [3, 4],
|
|
exclude: [
|
|
"Sources/NSNotificationCenter+AnyPromise.m",
|
|
"Sources/NSTask+AnyPromise.m",
|
|
"Sources/NSURLSession+AnyPromise.m",
|
|
"Sources/PMKFoundation.h",
|
|
"Tests" // currently SwiftPM is not savvy to having a single test…
|
|
]
|
|
)
|
|
|
|
#if os(Linux)
|
|
package.exclude += [
|
|
"Sources/afterlife.swift",
|
|
"Sources/NSObject+Promise.swift"
|
|
]
|
|
#endif
|