2022-02-03 18:06:44 +02:00
|
|
|
import UIKit
|
|
|
|
import Flutter
|
2023-02-20 07:59:50 +02:00
|
|
|
import BackgroundTasks
|
|
|
|
import path_provider_ios
|
|
|
|
import photo_manager
|
2022-02-03 18:06:44 +02:00
|
|
|
|
|
|
|
@UIApplicationMain
|
|
|
|
@objc class AppDelegate: FlutterAppDelegate {
|
2023-02-20 07:59:50 +02:00
|
|
|
|
2022-02-03 18:06:44 +02:00
|
|
|
override func application(
|
|
|
|
_ application: UIApplication,
|
|
|
|
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
|
|
|
|
) -> Bool {
|
2023-02-20 07:59:50 +02:00
|
|
|
|
|
|
|
GeneratedPluginRegistrant.register(with: self)
|
|
|
|
BackgroundServicePlugin.registerBackgroundProcessing()
|
|
|
|
|
|
|
|
BackgroundServicePlugin.register(with: self.registrar(forPlugin: "BackgroundServicePlugin")!)
|
|
|
|
|
|
|
|
BackgroundServicePlugin.setPluginRegistrantCallback { registry in
|
|
|
|
if !registry.hasPlugin("org.cocoapods.path-provider-ios") {
|
|
|
|
FLTPathProviderPlugin.register(with: registry.registrar(forPlugin: "org.cocoapods.path-provider-ios")!)
|
|
|
|
}
|
|
|
|
|
|
|
|
if !registry.hasPlugin("org.cocoapods.photo-manager") {
|
|
|
|
PhotoManagerPlugin.register(with: registry.registrar(forPlugin: "org.cocoapods.photo-manager")!)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
return super.application(application, didFinishLaunchingWithOptions: launchOptions)
|
2022-02-03 18:06:44 +02:00
|
|
|
}
|
2023-02-20 07:59:50 +02:00
|
|
|
|
2022-02-03 18:06:44 +02:00
|
|
|
}
|