Skip to content

Commit 8394071

Browse files
authored
Merge pull request #102 from vincentneo/spm5.9
Update for Swift 5.9 package manager
2 parents 7ba4a24 + 7288119 commit 8394071

File tree

3 files changed

+45
-4
lines changed

3 files changed

+45
-4
lines changed

.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Package.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
// swift-tools-version:5.0
1+
// swift-tools-version:5.9
22
// The swift-tools-version declares the minimum version of Swift required to build this package.
33

44
import PackageDescription
55

66
let package = Package(
77
name: "CoreGPX",
88
platforms: [
9-
.iOS(.v11), .macOS(.v10_13), .watchOS(.v4)
9+
.iOS(.v11), .macOS(.v10_13), .watchOS(.v4), .visionOS(.v1), .tvOS(.v11)
1010
],
1111
products: [
1212
// Products define the executables and libraries produced by a package, and make them visible to other packages.
@@ -29,6 +29,6 @@ let package = Package(
2929
name: "CoreGPXTests",
3030
dependencies: ["CoreGPX"],
3131
path: "Example/Tests"),
32-
],
33-
swiftLanguageVersions: [ .v4_2, .v5 ]
32+
]
3433
)
34+

[email protected]

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
// swift-tools-version:5.2
2+
// The swift-tools-version declares the minimum version of Swift required to build this package.
3+
4+
import PackageDescription
5+
6+
let package = Package(
7+
name: "CoreGPX",
8+
platforms: [
9+
.iOS(.v11), .macOS(.v10_13), .watchOS(.v4)
10+
],
11+
products: [
12+
// Products define the executables and libraries produced by a package, and make them visible to other packages.
13+
.library(
14+
name: "CoreGPX",
15+
targets: ["CoreGPX"]),
16+
],
17+
dependencies: [
18+
// Dependencies declare other packages that this package depends on.
19+
// .package(url: /* package url */, from: "1.0.0"),
20+
],
21+
targets: [
22+
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
23+
// Targets can depend on other targets in this package, and on products in packages which this package depends on.
24+
.target(
25+
name: "CoreGPX",
26+
dependencies: [],
27+
path: "Classes"),
28+
.testTarget(
29+
name: "CoreGPXTests",
30+
dependencies: ["CoreGPX"],
31+
path: "Example/Tests"),
32+
],
33+
swiftLanguageVersions: [ .v4_2, .v5 ]
34+
)

0 commit comments

Comments
 (0)