This commit is contained in:
nyne
2024-10-27 16:31:01 +08:00
parent fa39bdf3eb
commit 910bda8cc1
2 changed files with 5 additions and 1 deletions

View File

@@ -13,6 +13,10 @@ import UniformTypeIdentifiers
) -> Bool {
GeneratedPluginRegistrant.register(with: self)
guard let controller = window?.rootViewController as? FlutterViewController else {
fatalError("rootViewController is not of type FlutterViewController")
}
let methodChannel = FlutterMethodChannel(name: "venera/method_channel", binaryMessenger: controller.binaryMessenger)
methodChannel.setMethodCallHandler { (call, result) in
if call.method == "getProxy" {