COVIDSafe code from version 2.3

This commit is contained in:
COVIDSafe Support 2021-02-25 19:41:20 -08:00 committed by covidsafe-support
parent f14aa60482
commit e577a9e7aa
63 changed files with 3096 additions and 372 deletions

View file

@ -62,8 +62,7 @@ class ConcreteAwakeSensor : NSObject, AwakeSensor, CLLocationManagerDelegate {
locationManager.startRangingBeacons(in: beaconRegion)
logger.debug("startRangingBeacons(ios<13.0,beaconUUID=\(beaconUUID.uuidString)))")
}
delegates.forEach({ $0.sensor(.AWAKE, didUpdateState: .on) })
}
func stop() {
@ -82,6 +81,7 @@ class ConcreteAwakeSensor : NSObject, AwakeSensor, CLLocationManagerDelegate {
locationManager.stopRangingBeacons(in: beaconRegion)
logger.debug("stopRangingBeacons(ios<13.0,beaconUUID=\(beaconUUID.description))")
}
delegates.forEach({ $0.sensor(.AWAKE, didUpdateState: .off) })
}
// MARK:- CLLocationManagerDelegate