getditto / DittoSwiftTools

Diagnostic and Debugging Tools for DittoSwift
MIT License
9 stars 2 forks source link

Fix deprecation warning in BluetoothManager #140

Closed bplattenburg closed 2 months ago

bplattenburg commented 3 months ago

Updates BluetoothManager to fully utilize its existing conformance to CBCentralManagerDelegate and use that delegate conformance to get updates about both authorization status and bluetooth state. Previously, this used Combine to access the state and authorization properties on the local instance of CBCentralManager, but in iOS 13.1, authorization moved to be a class property instead.

Also removes an unused [weak self] from DittoManager.swift

Closes #136