2022-10-15 16:35:35 +00:00
|
|
|
import UIKit
|
|
|
|
import Flutter
|
|
|
|
|
2025-01-20 18:32:57 +00:00
|
|
|
@main
|
2022-10-15 16:35:35 +00:00
|
|
|
@objc class AppDelegate: FlutterAppDelegate {
|
2023-02-11 12:58:47 +00:00
|
|
|
override func application(
|
|
|
|
_ application: UIApplication,
|
|
|
|
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
|
|
|
|
) -> Bool {
|
|
|
|
let controller : FlutterViewController = window?.rootViewController as! FlutterViewController
|
2025-05-11 10:48:10 +00:00
|
|
|
let caffeinePlatformChannel = CaffeinePlatformChannel(binaryMessenger: controller.binaryMessenger)
|
2023-02-11 12:58:47 +00:00
|
|
|
GeneratedPluginRegistrant.register(with: self)
|
|
|
|
return super.application(application, didFinishLaunchingWithOptions: launchOptions)
|
|
|
|
}
|
2022-10-15 16:35:35 +00:00
|
|
|
}
|