2018-09-14 02:21:51 +02:00
|
|
|
import UIKit
|
|
|
|
import Flutter
|
2019-10-28 04:58:25 +01:00
|
|
|
//import flutter_downloader
|
2018-09-14 02:21:51 +02:00
|
|
|
|
|
|
|
@UIApplicationMain
|
2021-02-22 12:16:23 +01:00
|
|
|
|
2018-09-14 02:21:51 +02:00
|
|
|
@objc class AppDelegate: FlutterAppDelegate {
|
2019-10-26 04:42:50 +02:00
|
|
|
|
2018-09-14 02:21:51 +02:00
|
|
|
override func application(
|
|
|
|
_ application: UIApplication,
|
2019-09-23 10:29:13 +08:00
|
|
|
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
|
2018-09-14 02:21:51 +02:00
|
|
|
) -> Bool {
|
|
|
|
GeneratedPluginRegistrant.register(with: self)
|
2021-02-12 17:14:13 +01:00
|
|
|
//FlutterDownloaderPlugin.setPluginRegistrantCallback(registerPlugins)
|
2018-09-14 02:21:51 +02:00
|
|
|
return super.application(application, didFinishLaunchingWithOptions: launchOptions)
|
|
|
|
}
|
|
|
|
}
|
2021-02-12 17:14:13 +01:00
|
|
|
|
|
|
|
//private func registerPlugins(registry: FlutterPluginRegistry) {
|
|
|
|
// if (!registry.hasPlugin("FlutterDownloaderPlugin")) {
|
|
|
|
// FlutterDownloaderPlugin.register(with: registry.registrar(forPlugin: "FlutterDownloaderPlugin")!)
|
|
|
|
// }
|
|
|
|
//}
|