AppDelegate.swift 788 B

12345678910111213141516171819202122232425262728293031
  1. import UIKit
  2. import Flutter
  3. import Firebase
  4. //
  5. @UIApplicationMain
  6. @objc class AppDelegate: FlutterAppDelegate {
  7. override func application(
  8. _ application: UIApplication,
  9. didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
  10. ) -> Bool {
  11. FirebaseApp.configure()
  12. GeneratedPluginRegistrant.register(with: self)
  13. return super.application(application, didFinishLaunchingWithOptions: launchOptions)
  14. }
  15. }
  16. //@UIApplicationMain
  17. //class AppDelegate: UIResponder, UIApplicationDelegate {
  18. //
  19. // var window: UIWindow?
  20. //
  21. // func application(_ application: UIApplication,
  22. // didFinishLaunchingWithOptions launchOptions:
  23. // [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
  24. // FirebaseApp.configure()
  25. //
  26. // return true
  27. // }
  28. //}