Skip to content

Commit

Permalink
fix sendable warnings in xcode 16
Browse files Browse the repository at this point in the history
  • Loading branch information
klundberg committed Jul 13, 2024
1 parent 72b672e commit a1bab2c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
5 changes: 3 additions & 2 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -19,14 +19,15 @@ 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(
name: "CombineCoreBluetooth",
dependencies: [
],
swiftSettings: [
// .enableUpcomingFeature("StrictConcurrency"),
]
),
.testTarget(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,6 @@ public struct CentralManager: Sendable {
}

@objc(CCBCentralManagerRestorableDelegate)
class RestorableDelegate: Delegate {
class RestorableDelegate: Delegate, @unchecked Sendable {
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,5 @@ extension PeripheralManager {
}

@objc(CCBPeripheralManagerRestorableDelegate)
class RestorableDelegate: Delegate {

}
class RestorableDelegate: Delegate, @unchecked Sendable {}
}

0 comments on commit a1bab2c

Please sign in to comment.