We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d0e66a6 commit 0d92d3fCopy full SHA for 0d92d3f
Sources/AndroidBluetooth/AndroidCentral.swift
@@ -96,8 +96,7 @@ public final class AndroidCentral: CentralManager {
96
else { throw AndroidCentralError.bluetoothDisabled }
97
98
// check permission
99
- let permission = try Permission(rawValue: JavaClass<Manifest.Permission>().BLUETOOTH_SCAN)
100
- try checkPermission(permission)
+ try checkPermission(.bluetoothScan)
101
102
return .init(onTermination: {
103
Task {
0 commit comments