PromiseKit/Package.swift
Doug 2b90cb3d4e
'Cancel' for PromiseKit (#899)
This patch adds the concept of a `CancelContext` to PromiseKit allowing chains to handle cancellation properly for each independent promise after the cancel point.
2019-04-07 16:25:31 -04:00

25 lines
867 B
Swift
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// swift-tools-version:5.0
import PackageDescription
let pkg = Package(name: "PromiseKit")
pkg.platforms = [
.macOS(.v10_12), //FIXME strictly 10.10 (only tests need 10.12)
.iOS(.v10), //FIXME strictly 8.0
.tvOS(.v10), //FIXME strictly 9.0
.watchOS(.v2)
]
pkg.products = [
.library(name: "PromiseKit", targets: ["PromiseKit"]),
]
pkg.swiftLanguageVersions = [
.v5 // grab PromiseKit-6.x if you want Swift 3.14.2
]
pkg.targets = [
.target(name: "PromiseKit", path: "Sources"),
.testTarget(name: "Core", dependencies: ["PromiseKit"], path: "Tests/Core"),
.testTarget(name: "Cancel", dependencies: ["PromiseKit"], path: "Tests/Cancel"),
.testTarget(name: "A+.swift", dependencies: ["PromiseKit"], path: "Tests/A+/Swift"),
.testTarget(name: "A+.js", dependencies: ["PromiseKit"], path: "Tests/A+/JavaScript"),
]