added updates to Package.swift so it can be imported with Xcode 11 (#615)

This commit is contained in:
Max Cobb 2019-08-05 06:17:03 +01:00 committed by Robert Payne
parent df9df818dd
commit bffbeecd10
2 changed files with 9 additions and 0 deletions

1
.gitignore vendored
View File

@ -6,3 +6,4 @@ Examples/
Gemfile Gemfile
Gemfile.lock Gemfile.lock
*.sketch *.sketch
.swiftpm

View File

@ -27,11 +27,19 @@ import PackageDescription
let package = Package( let package = Package(
name: "SnapKit", name: "SnapKit",
platforms: [
.iOS(.v10),
.macOS(.v10_12),
.tvOS(.v10)
],
products: [ products: [
.library(name: "SnapKit", targets: ["SnapKit"]), .library(name: "SnapKit", targets: ["SnapKit"]),
], ],
targets: [ targets: [
.target(name: "SnapKit", path: "Source"), .target(name: "SnapKit", path: "Source"),
.testTarget(name: "SnapKitTests", dependencies: ["SnapKit"]), .testTarget(name: "SnapKitTests", dependencies: ["SnapKit"]),
],
swiftLanguageVersions: [
.v5
] ]
) )