Commit dc7d2a96 by Demid Merzlyakov

Configure Firebase earlier on.

parent 845162f1
...@@ -42,6 +42,11 @@ class AppDelegate: UIResponder, UIApplicationDelegate { ...@@ -42,6 +42,11 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
case pushNotification = "Share Deeplink" case pushNotification = "Share Deeplink"
} }
override init() {
super.init()
FirebaseApp.configure()
}
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
settings.appDelegate = self settings.appDelegate = self
settings.delegate.add(delegate: self) settings.delegate.add(delegate: self)
...@@ -88,7 +93,6 @@ class AppDelegate: UIResponder, UIApplicationDelegate { ...@@ -88,7 +93,6 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
// TODO: remove setAppKey from here, if Amazon has fixed the freeze on startup. // TODO: remove setAppKey from here, if Amazon has fixed the freeze on startup.
log.info("Amazon SDK (Amazon A9) initialization start") log.info("Amazon SDK (Amazon A9) initialization start")
DTBAds.sharedInstance().setAppKey(a9AppKey) DTBAds.sharedInstance().setAppKey(a9AppKey)
FirebaseApp.configure()
ConfigManager.shared.updateConfig() ConfigManager.shared.updateConfig()
FeatureAvailabilityManager.shared = configureFeatureAvailabilityManager(with: LocationManager.shared, configManager: ConfigManager.shared) FeatureAvailabilityManager.shared = configureFeatureAvailabilityManager(with: LocationManager.shared, configManager: ConfigManager.shared)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment