From cfd808cbdbfd5f5fab31487493f18ae20f8e5b84 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 | 4 ++-- .../CentralManager/Interface+CentralManager.swift | 3 +-- .../PeripheralManager/Interface+PeripheralManager.swift | 4 +--- 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/Package.swift b/Package.swift index 9bbf7ab..795dc58 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( diff --git a/Sources/CombineCoreBluetooth/CentralManager/Interface+CentralManager.swift b/Sources/CombineCoreBluetooth/CentralManager/Interface+CentralManager.swift index 267eda0..9397b6c 100644 --- a/Sources/CombineCoreBluetooth/CentralManager/Interface+CentralManager.swift +++ b/Sources/CombineCoreBluetooth/CentralManager/Interface+CentralManager.swift @@ -184,6 +184,5 @@ 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 {} }