Skip to content

Commit 6418b9a

Browse files
committed
Support Swift 5
1 parent eb72eae commit 6418b9a

File tree

2 files changed

+71
-0
lines changed

2 files changed

+71
-0
lines changed

[email protected]

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
// swift-tools-version: 5.10
2+
3+
import PackageDescription
4+
5+
let package = Package(
6+
name: "swift-gzip",
7+
platforms: [
8+
.iOS(.v15),
9+
.tvOS(.v15),
10+
.visionOS(.v1),
11+
.macOS(.v12),
12+
.macCatalyst(.v15),
13+
.watchOS(.v8)
14+
],
15+
products: [
16+
.library(name: "SwiftGzip", targets: ["SwiftGzip"])
17+
],
18+
targets: [
19+
.target(
20+
name: "SwiftGzip",
21+
resources: [.copy("Resources/PrivacyInfo.xcprivacy")],
22+
swiftSettings: [.enableExperimentalFeature("StrictConcurrency")],
23+
linkerSettings: [.linkedLibrary("z")]
24+
),
25+
.testTarget(
26+
name: "SwiftGzipTests",
27+
dependencies: [.target(name: "SwiftGzip")],
28+
resources: [
29+
.copy("Resources/test.png"),
30+
.copy("Resources/test.png.gz")
31+
]
32+
)
33+
],
34+
swiftLanguageVersions: [.v5]
35+
)

[email protected]

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
// swift-tools-version: 5.8
2+
3+
import PackageDescription
4+
5+
let package = Package(
6+
name: "swift-gzip",
7+
platforms: [
8+
.iOS(.v15),
9+
.tvOS(.v15),
10+
.macOS(.v12),
11+
.macCatalyst(.v15),
12+
.watchOS(.v8)
13+
],
14+
products: [
15+
.library(name: "SwiftGzip", targets: ["SwiftGzip"])
16+
],
17+
targets: [
18+
.target(
19+
name: "SwiftGzip",
20+
path: "Sources",
21+
resources: [.copy("Resources/PrivacyInfo.xcprivacy")],
22+
swiftSettings: [.enableExperimentalFeature("StrictConcurrency")],
23+
linkerSettings: [.linkedLibrary("z")]
24+
),
25+
.testTarget(
26+
name: "SwiftGzipTests",
27+
dependencies: [.target(name: "SwiftGzip")],
28+
path: "Tests",
29+
resources: [
30+
.copy("Resources/test.png"),
31+
.copy("Resources/test.png.gz")
32+
]
33+
)
34+
],
35+
swiftLanguageVersions: [.v5]
36+
)

0 commit comments

Comments
 (0)