From 08877700440482256fe3bcf7f2655c779b07ab5b Mon Sep 17 00:00:00 2001 From: Marc Prud'hommeaux Date: Thu, 21 May 2026 17:23:21 -0400 Subject: [PATCH 1/3] Update package version to Swift 6.1 --- Package.swift | 2 +- Sources/SkipZip/MiniZipLibrary.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Package.swift b/Package.swift index a2ab6fe..14eb980 100644 --- a/Package.swift +++ b/Package.swift @@ -1,4 +1,4 @@ -// swift-tools-version: 5.9 +// swift-tools-version: 6.1 import PackageDescription let package = Package( diff --git a/Sources/SkipZip/MiniZipLibrary.swift b/Sources/SkipZip/MiniZipLibrary.swift index 191c74c..a85c398 100644 --- a/Sources/SkipZip/MiniZipLibrary.swift +++ b/Sources/SkipZip/MiniZipLibrary.swift @@ -183,7 +183,7 @@ extension unz_file_info64 : ZipEntryInfo { /// `MiniZipLibrary` is a Swift encapsulation of the MiniZip library -internal final class MiniZipLibrary { +internal final class MiniZipLibrary: Sendable { /// The singleton library instance, registered using JNA to map the Kotlin functions to their native equivalents static let instance = registerNatives(MiniZipLibrary(), frameworkName: "SkipZip", libraryName: "minizip") From a61e226544e1e8de2c8514a2b63ad76a7903194b Mon Sep 17 00:00:00 2001 From: Marc Prud'hommeaux Date: Thu, 21 May 2026 17:24:36 -0400 Subject: [PATCH 2/3] Fix license headers --- Sources/SkipZip/MiniZipLibrary.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/Sources/SkipZip/MiniZipLibrary.swift b/Sources/SkipZip/MiniZipLibrary.swift index a85c398..b01e41e 100644 --- a/Sources/SkipZip/MiniZipLibrary.swift +++ b/Sources/SkipZip/MiniZipLibrary.swift @@ -1,3 +1,4 @@ +// Copyright 2023–2026 Skip // SPDX-License-Identifier: MPL-2.0 import Foundation import SkipFFI From 5ba5e076f27dd2a07f348915056817648bff1317 Mon Sep 17 00:00:00 2001 From: Marc Prud'hommeaux Date: Thu, 21 May 2026 23:32:14 -0400 Subject: [PATCH 3/3] import FoundationNetworking --- Sources/SkipZip/RemoteZipReader.swift | 3 +++ Tests/SkipZipTests/RemoteZipReaderTests.swift | 3 +++ 2 files changed, 6 insertions(+) diff --git a/Sources/SkipZip/RemoteZipReader.swift b/Sources/SkipZip/RemoteZipReader.swift index 0b78736..90ce7ca 100644 --- a/Sources/SkipZip/RemoteZipReader.swift +++ b/Sources/SkipZip/RemoteZipReader.swift @@ -1,6 +1,9 @@ // Copyright 2023–2026 Skip // SPDX-License-Identifier: MPL-2.0 import Foundation +#if canImport(FoundationNetworking) +import FoundationNetworking +#endif #if !SKIP import MiniZip #endif diff --git a/Tests/SkipZipTests/RemoteZipReaderTests.swift b/Tests/SkipZipTests/RemoteZipReaderTests.swift index 7c20857..1d85283 100644 --- a/Tests/SkipZipTests/RemoteZipReaderTests.swift +++ b/Tests/SkipZipTests/RemoteZipReaderTests.swift @@ -2,6 +2,9 @@ // SPDX-License-Identifier: MPL-2.0 import XCTest import Foundation +#if canImport(FoundationNetworking) +import FoundationNetworking +#endif @testable import SkipZip #if !SKIP