mirror of
https://github.com/AU-COVIDSafe/mobile-ios.git
synced 2025-04-19 21:15:21 +00:00
COVIDSafe code from version 2.0 (#37)
This commit is contained in:
parent
cf93ea43c0
commit
8b75c1fc6f
55 changed files with 4624 additions and 1117 deletions
|
@ -29,14 +29,6 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
|
|||
UIBarButtonItem.appearance().setTitleTextAttributes([.foregroundColor: UIColor.covidSafeColor], for: .normal)
|
||||
UINavigationBar.appearance().tintColor = UIColor.covidSafeColor
|
||||
|
||||
let hasUserConsent = true
|
||||
let hasUserCompletedOnboarding = UserDefaults.standard.bool(forKey: "turnedOnBluetooth")
|
||||
let bluetoothAuthorised = BluetraceManager.shared.isBluetoothAuthorized()
|
||||
if (hasUserConsent && hasUserCompletedOnboarding && bluetoothAuthorised) {
|
||||
BluetraceManager.shared.turnOn()
|
||||
} else {
|
||||
print("Onboarding not yet done.")
|
||||
}
|
||||
EncounterMessageManager.shared.setup()
|
||||
UIApplication.shared.isIdleTimerDisabled = true
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue