diff --git a/Trust/Settings/Coordinators/PushNotificationsRegistrar.swift b/Trust/Settings/Coordinators/PushNotificationsRegistrar.swift index 2b0db3229..00ebf1af9 100644 --- a/Trust/Settings/Coordinators/PushNotificationsRegistrar.swift +++ b/Trust/Settings/Coordinators/PushNotificationsRegistrar.swift @@ -21,13 +21,8 @@ class PushNotificationsRegistrar { } func register() { - if #available(iOS 10, *) { - UNUserNotificationCenter.current().requestAuthorization(options: [.badge, .alert, .sound]) { _, _ in } - UIApplication.shared.registerForRemoteNotifications() - } else if #available(iOS 9, *) { - UIApplication.shared.registerUserNotificationSettings(UIUserNotificationSettings(types: [.badge, .sound, .alert], categories: nil)) - UIApplication.shared.registerForRemoteNotifications() - } + UNUserNotificationCenter.current().requestAuthorization(options: [.badge, .alert, .sound]) { _, _ in } + UIApplication.shared.registerForRemoteNotifications() } func unregister() { diff --git a/Trust/Settings/ViewControllers/SplashViewController.swift b/Trust/Settings/ViewControllers/SplashViewController.swift index f91b9d70d..79cc2e5e5 100644 --- a/Trust/Settings/ViewControllers/SplashViewController.swift +++ b/Trust/Settings/ViewControllers/SplashViewController.swift @@ -6,16 +6,16 @@ import VENTouchLock class SplashViewController: VENTouchLockSplashViewController { let label = UILabel() - + override init(nibName nibNameOrNil: String?, bundle nibBundleOrNil: Bundle?) { super.init(nibName: nibNameOrNil, bundle: nibBundleOrNil) self.setIsSnapshot(true) } - + required init?(coder aDecoder: NSCoder) { fatalError("init(coder:) has not been implemented") } - + override func viewDidLoad() { super.viewDidLoad() diff --git a/TrustTests/Factories/FakeKeystore.swift b/TrustTests/Factories/FakeKeystore.swift index 86db3ab19..02acac954 100644 --- a/TrustTests/Factories/FakeKeystore.swift +++ b/TrustTests/Factories/FakeKeystore.swift @@ -66,6 +66,10 @@ struct FakeKeystore: Keystore { return .failure(KeystoreError.failedToSignTransaction) } + func delete(wallet: Wallet, completion: @escaping (Result) -> Void) { + completion(.failure(KeystoreError.failedToSignTransaction)) + } + func updateAccount(account: Account, password: String, newPassword: String) -> Result { //TODO: Implement return .failure(KeystoreError.failedToSignTransaction)