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
Updates
BluetoothManager
to fully utilize its existing conformance toCBCentralManagerDelegate
and use that delegate conformance to get updates about both authorization status and bluetooth state. Previously, this used Combine to access thestate
andauthorization
properties on the local instance ofCBCentralManager
, but in iOS 13.1,authorization
moved to be a class property instead.Also removes an unused
[weak self]
fromDittoManager.swift
Closes #136