From a1bab2ceae4b41d85562eed5b5dd454707d5cdbf Mon Sep 17 00:00:00 2001 From: Kevin Lundberg Date: Fri, 12 Jul 2024 19:55:17 -0400 Subject: [PATCH] fix sendable warnings in xcode 16 --- Package.swift | 5 +++-- .../CentralManager/Interface+CentralManager.swift | 2 +- .../PeripheralManager/Interface+PeripheralManager.swift | 4 +--- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/Package.swift b/Package.swift index 9bbf7ab..3a8f852 100644 --- a/Package.swift +++ b/Package.swift @@ -1,4 +1,4 @@ -// swift-tools-version:5.6 +// swift-tools-version:5.9 // The swift-tools-version declares the minimum version of Swift required to build this package. import PackageDescription @@ -19,7 +19,7 @@ let package = Package( ], dependencies: [ .package(url: "https://github.com/pointfreeco/swift-concurrency-extras", "0.1.0"..<"2.0.0"), - .package(url: "https://github.com/apple/swift-docc-plugin", from: "1.0.0") + .package(url: "https://github.com/apple/swift-docc-plugin", from: "1.0.0"), ], targets: [ .target( @@ -27,6 +27,7 @@ let package = Package( dependencies: [ ], swiftSettings: [ +// .enableUpcomingFeature("StrictConcurrency"), ] ), .testTarget( diff --git a/Sources/CombineCoreBluetooth/CentralManager/Interface+CentralManager.swift b/Sources/CombineCoreBluetooth/CentralManager/Interface+CentralManager.swift index 267eda0..a1a27ec 100644 --- a/Sources/CombineCoreBluetooth/CentralManager/Interface+CentralManager.swift +++ b/Sources/CombineCoreBluetooth/CentralManager/Interface+CentralManager.swift @@ -184,6 +184,6 @@ public struct CentralManager: Sendable { } @objc(CCBCentralManagerRestorableDelegate) - class RestorableDelegate: Delegate { + class RestorableDelegate: Delegate, @unchecked Sendable { } } diff --git a/Sources/CombineCoreBluetooth/PeripheralManager/Interface+PeripheralManager.swift b/Sources/CombineCoreBluetooth/PeripheralManager/Interface+PeripheralManager.swift index d9eb8ab..9a1329a 100644 --- a/Sources/CombineCoreBluetooth/PeripheralManager/Interface+PeripheralManager.swift +++ b/Sources/CombineCoreBluetooth/PeripheralManager/Interface+PeripheralManager.swift @@ -149,7 +149,5 @@ extension PeripheralManager { } @objc(CCBPeripheralManagerRestorableDelegate) - class RestorableDelegate: Delegate { - - } + class RestorableDelegate: Delegate, @unchecked Sendable {} }