mirror of
https://github.com/immich-app/immich.git
synced 2026-02-15 05:18:37 +03:00
19 lines
633 B
Swift
19 lines
633 B
Swift
import UIKit
|
|
import Flutter
|
|
|
|
@main
|
|
@objc class AppDelegate: FlutterAppDelegate {
|
|
override func application(
|
|
_ application: UIApplication,
|
|
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
|
|
) -> Bool {
|
|
GeneratedPluginRegistrant.register(with: self)
|
|
|
|
// Register piegon handler
|
|
let controller: FlutterViewController = window?.rootViewController as! FlutterViewController
|
|
ImmichHostServiceSetup.setUp(binaryMessenger: controller.binaryMessenger, api: ImmichHostServiceImpl())
|
|
|
|
return super.application(application, didFinishLaunchingWithOptions: launchOptions)
|
|
}
|
|
}
|