AppDelegate.swift 751 Bytes
import UIKit
import Flutter

@UIApplicationMain
@objc class AppDelegate: FlutterAppDelegate {
    override func application(
        _ application: UIApplication,
        didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
    ) -> Bool {
        GeneratedPluginRegistrant.register(with: self)
        let controller : FlutterViewController = window?.rootViewController as! FlutterViewController
        _ = VoiceXSMessageChannel(messager: controller.binaryMessenger)
        _ = XSMessageMehtodChannel(message: controller.binaryMessenger);
        _ = GameMessageChannel(message: controller.binaryMessenger);
        
        return super.application(application, didFinishLaunchingWithOptions: launchOptions)
    }
}