AppDelegate.swift 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. //
  2. // AppDelegate.swift
  3. // RemoteConfigSwiftSample
  4. //
  5. // Created by Karen Zeng on 11/16/20.
  6. // Copyright © 2020 Firebase. All rights reserved.
  7. //
  8. import UIKit
  9. import FirebaseCore
  10. @UIApplicationMain
  11. class AppDelegate: UIResponder, UIApplicationDelegate {
  12. func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
  13. // Override point for customization after application launch.
  14. FirebaseApp.configure()
  15. return true
  16. }
  17. // MARK: UISceneSession Lifecycle
  18. func application(_ application: UIApplication, configurationForConnecting connectingSceneSession: UISceneSession, options: UIScene.ConnectionOptions) -> UISceneConfiguration {
  19. // Called when a new scene session is being created.
  20. // Use this method to select a configuration to create the new scene with.
  21. return UISceneConfiguration(name: "Default Configuration", sessionRole: connectingSceneSession.role)
  22. }
  23. func application(_ application: UIApplication, didDiscardSceneSessions sceneSessions: Set<UISceneSession>) {
  24. // Called when the user discards a scene session.
  25. // If any sessions were discarded while the application was not running, this will be called shortly after application:didFinishLaunchingWithOptions.
  26. // Use this method to release any resources that were specific to the discarded scenes, as they will not return.
  27. }
  28. }