diff --git a/Package.swift b/Package.swift index f48d6db..ac29088 100644 --- a/Package.swift +++ b/Package.swift @@ -1,4 +1,4 @@ -// swift-tools-version:5.9 +// swift-tools-version:6.0 // // Package.swift // SwiftSSDP @@ -24,7 +24,10 @@ let package = Package( targets: [ .target( name: "SwiftSSDP", - path: "Sources/SwiftSSDP" + path: "Sources/SwiftSSDP", + swiftSettings: [ + .swiftLanguageMode(.v6), + ] ), .testTarget( name: "SwiftSSDPTests", @@ -32,6 +35,9 @@ let package = Package( path: "Tests/SwiftSSDPTests", resources: [ .copy("Fixtures"), + ], + swiftSettings: [ + .swiftLanguageMode(.v6), ] ), ] diff --git a/README.md b/README.md index 55a9254..4cd17e8 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # SwiftSSDP -![Swift 5.9](https://img.shields.io/badge/swift-5.9-orange.svg?style=for-the-badge&logo=swift) +![Swift 6](https://img.shields.io/badge/swift-6-orange.svg?style=for-the-badge&logo=swift) ![Platforms](https://img.shields.io/badge/platforms-iOS%20%7C%20macOS%20%7C%20tvOS-blue.svg?style=for-the-badge&logo=apple) [![CI](https://img.shields.io/github/actions/workflow/status/happycodelucky/SwiftSSDP/ci.yml?style=for-the-badge&label=ci)](https://github.com/happycodelucky/SwiftSSDP/actions/workflows/ci.yml) [![Release](https://img.shields.io/github/v/release/happycodelucky/SwiftSSDP?style=for-the-badge)](https://github.com/happycodelucky/SwiftSSDP/releases/latest) @@ -213,10 +213,12 @@ Categories: `discovery`, `transport`, `listener`, `parser`. ## Requirements -- **Swift:** 5.9+ -- **Xcode:** 15+ +- **Swift:** 6.0+ (Swift 6 language mode with strict concurrency checking) +- **Xcode:** 16+ - **Platforms:** iOS 17, macOS 14, tvOS 17 (watchOS not supported — multicast is unavailable on watchOS) +The library compiles cleanly under `-strict-concurrency=complete -warnings-as-errors`. Public API surface is fully `Sendable` so it composes naturally with actor-isolated callers. + ## License MIT — see [LICENSE](LICENSE). diff --git a/Sources/SwiftSSDP/SwiftSSDP.swift b/Sources/SwiftSSDP/SwiftSSDP.swift index e0710af..94b666b 100644 --- a/Sources/SwiftSSDP/SwiftSSDP.swift +++ b/Sources/SwiftSSDP/SwiftSSDP.swift @@ -17,5 +17,5 @@ public enum SwiftSSDP { /// /// > Note: This constant is rewritten by `.github/workflows/release.yml` whenever a /// > release is published. Do not edit it by hand outside of that workflow. - public static let version = "2.0.0" + public static let version = "2.1.0" }