import UIKit import Flutter import YooKassaPayments var result: FlutterResult? @UIApplicationMain @objc class AppDelegate: FlutterAppDelegate { override func application( _ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? ) -> Bool { GeneratedPluginRegistrant.register(with: self) return super.application(application, didFinishLaunchingWithOptions: launchOptions) } override func application( _ application: UIApplication, open url: URL, sourceApplication: String?, annotation: Any ) -> Bool { return YKSdk.shared.handleOpen( url: url, sourceApplication: sourceApplication ) } @available(iOS 9.0, *) override func application( _ app: UIApplication, open url: URL, options: [UIApplication.OpenURLOptionsKey: Any] = [:] ) -> Bool { return YKSdk.shared.handleOpen( url: url, sourceApplication: options[UIApplication.OpenURLOptionsKey.sourceApplication] as? String ) } }