From 71415adae45d498da9905a7fb2aef2a49ff6c6ab Mon Sep 17 00:00:00 2001 From: Cole Campbell <12163026+colemcampbell@users.noreply.github.com> Date: Wed, 30 Oct 2019 01:32:48 -0500 Subject: [PATCH] Configure Swift package for Swift 5.1 --- .../contents.xcworkspacedata | 7 +++++++ Package.swift | 19 ++++++++++++++++--- 2 files changed, 23 insertions(+), 3 deletions(-) create mode 100644 .swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata diff --git a/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata b/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..919434a --- /dev/null +++ b/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/Package.swift b/Package.swift index 47ab400..686b2b7 100644 --- a/Package.swift +++ b/Package.swift @@ -1,3 +1,4 @@ +// swift-tools-version:5.1 // // Async.swift // @@ -23,9 +24,21 @@ // IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - import PackageDescription let package = Package( - name: "Async" -) \ No newline at end of file + name: "Async", + platforms: [ + .macOS(.v10_10), + .iOS(.v8), + .watchOS(.v3), + .tvOS(.v9), + ], + products: [ + .library(name: "Async", targets: ["Async"]), + ], + targets: [ + .target(name: "Async"), + .testTarget(name: "AsyncTests", dependencies: ["Async"]) + ] +)