wip: add platform channels

This commit is contained in:
shenlong-tanwen
2024-09-15 03:31:01 +05:30
parent f1dcfbc594
commit 37b15869d5
9 changed files with 149 additions and 12 deletions
+5
View File
@@ -8,6 +8,11 @@ import Flutter
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)
}
}