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