An advanced Ethereum/EVM mobile wallet
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
alpha-wallet-ios/Trust/AppDelegate.swift

40 lines
1.5 KiB

// Copyright SIX DAY LLC. All rights reserved.
7 years ago
import UIKit
import Lokalise
7 years ago
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate, UISplitViewControllerDelegate {
var window: UIWindow?
7 years ago
var coordinator: AppCoordinator!
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
window = UIWindow(frame: UIScreen.main.bounds)
do {
let keystore = try EtherKeystore()
coordinator = AppCoordinator(window: window!, keystore: keystore)
coordinator.start()
} catch {
print("EtherKeystore init issue.")
}
7 years ago
return true
}
func application(_ application: UIApplication, didRegisterForRemoteNotificationsWithDeviceToken deviceToken: Data) {
coordinator.didRegisterForRemoteNotificationsWithDeviceToken(deviceToken: deviceToken)
}
7 years ago
func applicationDidEnterBackground(_ application: UIApplication) {
}
7 years ago
func applicationWillEnterForeground(_ application: UIApplication) {
7 years ago
}
func applicationDidBecomeActive(_ application: UIApplication) {
Lokalise.shared.checkForUpdates { _, _ in }
7 years ago
}
func application(_ application: UIApplication, shouldAllowExtensionPointIdentifier extensionPointIdentifier: UIApplicationExtensionPointIdentifier) -> Bool {
if extensionPointIdentifier == UIApplicationExtensionPointIdentifier.keyboard {
return false
}
return true
}
7 years ago
}