Skip to content

Commit

Permalink
Merge pull request #102 from vincentneo/spm5.9
Browse files Browse the repository at this point in the history
Update for Swift 5.9 package manager
  • Loading branch information
vincentneo authored Oct 10, 2024
2 parents 7ba4a24 + 7288119 commit 8394071
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 4 deletions.
7 changes: 7 additions & 0 deletions .swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
// swift-tools-version:5.0
// swift-tools-version:5.9
// The swift-tools-version declares the minimum version of Swift required to build this package.

import PackageDescription

let package = Package(
name: "CoreGPX",
platforms: [
.iOS(.v11), .macOS(.v10_13), .watchOS(.v4)
.iOS(.v11), .macOS(.v10_13), .watchOS(.v4), .visionOS(.v1), .tvOS(.v11)
],
products: [
// Products define the executables and libraries produced by a package, and make them visible to other packages.
Expand All @@ -29,6 +29,6 @@ let package = Package(
name: "CoreGPXTests",
dependencies: ["CoreGPX"],
path: "Example/Tests"),
],
swiftLanguageVersions: [ .v4_2, .v5 ]
]
)

34 changes: 34 additions & 0 deletions Package@swift-5.2.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
// swift-tools-version:5.2
// The swift-tools-version declares the minimum version of Swift required to build this package.

import PackageDescription

let package = Package(
name: "CoreGPX",
platforms: [
.iOS(.v11), .macOS(.v10_13), .watchOS(.v4)
],
products: [
// Products define the executables and libraries produced by a package, and make them visible to other packages.
.library(
name: "CoreGPX",
targets: ["CoreGPX"]),
],
dependencies: [
// Dependencies declare other packages that this package depends on.
// .package(url: /* package url */, from: "1.0.0"),
],
targets: [
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
// Targets can depend on other targets in this package, and on products in packages which this package depends on.
.target(
name: "CoreGPX",
dependencies: [],
path: "Classes"),
.testTarget(
name: "CoreGPXTests",
dependencies: ["CoreGPX"],
path: "Example/Tests"),
],
swiftLanguageVersions: [ .v4_2, .v5 ]
)

0 comments on commit 8394071

Please sign in to comment.