Skip to content

Commit

Permalink
Update Swift to 6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
1024jp committed Jun 16, 2024
1 parent a625f3f commit 5bfe76c
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 8 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@
Change Log
==========================

6.1.0
--------------------------

### Changes

- Support Swift 6.0.



6.0.1
--------------------------

Expand Down
19 changes: 11 additions & 8 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// swift-tools-version: 5.8
// swift-tools-version: 6.0

import PackageDescription

Expand All @@ -8,15 +8,18 @@ let package = Package(
.library(name: "Gzip", targets: ["Gzip"]),
],
targets: [
.target(name: "Gzip",
dependencies: ["system-zlib"],
swiftSettings: [.enableExperimentalFeature("StrictConcurrency")]),
.target(name: "system-zlib"),
.target(
name: "Gzip",
dependencies: ["system-zlib"]
),
.target(
name: "system-zlib"
),
.testTarget(
name: "GzipTests",
dependencies: ["Gzip"],
resources: [.copy("./test.txt.gz")],
swiftSettings: [.enableExperimentalFeature("StrictConcurrency")]
resources: [.copy("test.txt.gz")]
),
]
],
swiftLanguageVersions: [.v6]
)
26 changes: 26 additions & 0 deletions [email protected]
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
// swift-tools-version: 5.10

import PackageDescription

let package = Package(
name: "GzipSwift",
products: [
.library(name: "Gzip", targets: ["Gzip"]),
],
targets: [
.target(
name: "Gzip",
dependencies: ["system-zlib"],
swiftSettings: [.enableExperimentalFeature("StrictConcurrency")])
),
.target(
name: "system-zlib"
),
.testTarget(
name: "GzipTests",
dependencies: ["Gzip"],
resources: [.copy("test.txt.gz")],
swiftSettings: [.enableExperimentalFeature("StrictConcurrency")])
),
]
)

0 comments on commit 5bfe76c

Please sign in to comment.