Fix: Generate Warp Config on iOS

+ pod install new packages
This commit is contained in:
realWLF
2024-02-29 15:38:17 +03:30
parent 52ca38bd96
commit aafbf5e822
2 changed files with 16 additions and 0 deletions

View File

@@ -172,6 +172,16 @@ public class MethodHandler: NSObject, FlutterPlugin {
return
}
result(config)
case "generate_warp_config":
guard let args = call.arguments as? [String: Any],
let licenseKey = args["license-key"] as? String,
let accountId = args["previous-account-id"] as? String,
let accessToken = args["previous-access-token"] as? String else {
result(FlutterError(code: "INVALID_ARGS", message: nil, details: nil))
return
}
let warpConfig = MobileGenerateWarpConfig(licenseKey, accountId, accessToken, nil)
result(warpConfig)
default:
result(FlutterMethodNotImplemented)
}