Remove used values

pull/2/head
Michael Scoff 7 years ago
parent 3e04c769cf
commit b3aea4ac33
  1. 9
      Trust/Settings/Coordinators/PushNotificationsRegistrar.swift
  2. 6
      Trust/Settings/ViewControllers/SplashViewController.swift
  3. 4
      TrustTests/Factories/FakeKeystore.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() {

@ -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()

@ -66,6 +66,10 @@ struct FakeKeystore: Keystore {
return .failure(KeystoreError.failedToSignTransaction)
}
func delete(wallet: Wallet, completion: @escaping (Result<Void, KeystoreError>) -> Void) {
completion(.failure(KeystoreError.failedToSignTransaction))
}
func updateAccount(account: Account, password: String, newPassword: String) -> Result<Void, KeystoreError> {
//TODO: Implement
return .failure(KeystoreError.failedToSignTransaction)

Loading…
Cancel
Save