|
|
|
@ -2,22 +2,42 @@
|
|
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
|
|
// found in the LICENSE file.
|
|
|
|
// found in the LICENSE file.
|
|
|
|
|
|
|
|
|
|
|
|
import UIKit
|
|
|
|
|
|
|
|
import Flutter
|
|
|
|
import Flutter
|
|
|
|
import FlutterPluginRegistrant
|
|
|
|
import FlutterPluginRegistrant
|
|
|
|
|
|
|
|
import UIKit
|
|
|
|
|
|
|
|
|
|
|
|
@UIApplicationMain
|
|
|
|
@main
|
|
|
|
class AppDelegate: UIResponder, UIApplicationDelegate {
|
|
|
|
class AppDelegate: UIResponder, UIApplicationDelegate {
|
|
|
|
var window: UIWindow?
|
|
|
|
var flutterEngine: FlutterEngine?
|
|
|
|
|
|
|
|
|
|
|
|
var flutterEngine : FlutterEngine?
|
|
|
|
func application(
|
|
|
|
|
|
|
|
_ application: UIApplication,
|
|
|
|
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
|
|
|
|
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
|
|
|
|
// Instantiate Flutter engine
|
|
|
|
) -> Bool {
|
|
|
|
self.flutterEngine = FlutterEngine(name: "io.flutter", project: nil)
|
|
|
|
// Instantiate Flutter engine
|
|
|
|
self.flutterEngine?.run(withEntrypoint: nil)
|
|
|
|
self.flutterEngine = FlutterEngine(name: "io.flutter", project: nil)
|
|
|
|
GeneratedPluginRegistrant.register(with: self.flutterEngine!)
|
|
|
|
self.flutterEngine?.run(withEntrypoint: nil)
|
|
|
|
|
|
|
|
GeneratedPluginRegistrant.register(with: self.flutterEngine!)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return true
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
func application(
|
|
|
|
|
|
|
|
_ application: UIApplication,
|
|
|
|
|
|
|
|
configurationForConnecting connectingSceneSession: UISceneSession,
|
|
|
|
|
|
|
|
options: UIScene.ConnectionOptions
|
|
|
|
|
|
|
|
) -> UISceneConfiguration {
|
|
|
|
|
|
|
|
let configuration = UISceneConfiguration(
|
|
|
|
|
|
|
|
name: "Default Configuration",
|
|
|
|
|
|
|
|
sessionRole: connectingSceneSession.role
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
configuration.delegateClass = FlutterSceneDelegate.self
|
|
|
|
|
|
|
|
return configuration
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return true
|
|
|
|
func application(
|
|
|
|
}
|
|
|
|
_ application: UIApplication,
|
|
|
|
|
|
|
|
didDiscardSceneSessions sceneSessions: Set<UISceneSession>
|
|
|
|
|
|
|
|
) {
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|