From 2f8dd330e95c0251c3b39a7d23d283162f49e453 Mon Sep 17 00:00:00 2001 From: Suyeol Jeon Date: Fri, 29 Mar 2019 18:32:11 +0900 Subject: [PATCH 1/2] Update Package.swift for Swift 5 --- Package.swift | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Package.swift b/Package.swift index dfa622666..51ed66362 100644 --- a/Package.swift +++ b/Package.swift @@ -1,8 +1,11 @@ -// swift-tools-version:4.2 +// swift-tools-version:5.0 import PackageDescription let package = Package( name: "Nimble", + platforms: [ + .macOS(.v10_10), .iOS(.v8), .tvOS(.v9) + ], products: [ .library(name: "Nimble", targets: ["Nimble"]), ], @@ -17,5 +20,5 @@ let package = Package( exclude: ["objc"] ), ], - swiftLanguageVersions: [.v4_2] + swiftLanguageVersions: [.v5] ) From 8655fea1802b0c4269df31b14d1aadf2cd77b4e8 Mon Sep 17 00:00:00 2001 From: Suyeol Jeon Date: Mon, 1 Apr 2019 04:30:11 +0900 Subject: [PATCH 2/2] Add Package@swift-4.2.swift for backward compatibility --- Package@swift-4.2.swift | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 Package@swift-4.2.swift diff --git a/Package@swift-4.2.swift b/Package@swift-4.2.swift new file mode 100644 index 000000000..dfa622666 --- /dev/null +++ b/Package@swift-4.2.swift @@ -0,0 +1,21 @@ +// swift-tools-version:4.2 +import PackageDescription + +let package = Package( + name: "Nimble", + products: [ + .library(name: "Nimble", targets: ["Nimble"]), + ], + targets: [ + .target( + name: "Nimble", + dependencies: [] + ), + .testTarget( + name: "NimbleTests", + dependencies: ["Nimble"], + exclude: ["objc"] + ), + ], + swiftLanguageVersions: [.v4_2] +)