@objc class AppDelegate: FlutterAppDelegate {
override func application(
_ application: UIApplication,
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
GeneratedPluginRegistrant.register(with: self)
let controller : FlutterViewController = window?.rootViewController as! FlutterViewController
// Setup your custom theme which extends KevinTheme
Kevin.shared.theme = KevinTheme()
// Set optional locale, default is English locale
Kevin.shared.locale = Locale(identifier: "en")
// Initialize required plugins with your callback urls
KevinAccountsPlugin.shared.configure(
KevinAccountsConfiguration.Builder(
callbackUrl: URL(string: "https://your.callback.url")!
KevinInAppPaymentsPlugin.shared.configure(
KevinInAppPaymentsConfiguration.Builder(
callbackUrl: URL(string: "https://your.callback.url")!
let kevinChannel = FlutterMethodChannel(
name: "your.application.name/kevinChannel",
binaryMessenger: controller.binaryMessenger
kevinChannel.setMethodCallHandler({
(call: FlutterMethodCall, result: @escaping FlutterResult) -> Void in
// TODO: Handle Flutter calls here
return super.application(application, didFinishLaunchingWithOptions: launchOptions)