123456789101112131415161718 |
- import UIKit
- import Flutter
- @UIApplicationMain
- @objc class AppDelegate: FlutterAppDelegate {
- override func application(
- _ application: UIApplication,
- didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
- ) -> Bool {
- GeneratedPluginRegistrant.register(with: self)
- QMapServices.shared().apiKey = "OOZBZ-NHIWS-OCAOO-6VB3W-ROSBH-ZYB7Z"
- QMSSearchServices.shared()?.apiKey = "OOZBZ-NHIWS-OCAOO-6VB3W-ROSBH-ZYB7Z"
- let registrar:FlutterPluginRegistrar = self.registrar(forPlugin: "plugins.flutter.io/custom_platform_view_plugin")!
- let factory = MyFlutterViewFactory(messenger: registrar.messenger())
- registrar.register(factory, withId: "plugins.flutter.io/custom_platform_view")
- return super.application(application, didFinishLaunchingWithOptions: launchOptions)
- }
- }
|