By switching on the iOS version we can decide between using the new CBManager.state or the CBPeripheralManager.state or CBCentralManager.state, these states are all compatible with each other and still convert into an Availability and UnavailabiltyCause
fix delegate BKCBPeripheralManagerDelegateProxy so it conforms properly to CBPeripheralManagerDelegate and recieves calls, (NSError -> Error, AnyObject -> Any).
remove unused didRestoreState to fix warning.
allow ios 8 & 9
By switching on the iOS version we can decide between using the new CBManager.state or the CBPeripheralManager.state or CBCentralManager.state, these states are all compatible with each other and still convert into an Availability and UnavailabiltyCause
fix delegate BKCBPeripheralManagerDelegateProxy so it conforms properly to CBPeripheralManagerDelegate and recieves calls, (NSError -> Error, AnyObject -> Any). remove unused didRestoreState to fix warning.