zwallet/packages/warp_api_ffi/ios/Classes/SwiftWarpApiPlugin.swift

19 lines
568 B
Swift

import Flutter
import UIKit
public class SwiftWarpApiPlugin: NSObject, FlutterPlugin {
public static func register(with registrar: FlutterPluginRegistrar) {
let channel = FlutterMethodChannel(name: "warp_api", binaryMessenger: registrar.messenger())
let instance = SwiftWarpApiPlugin()
registrar.addMethodCallDelegate(instance, channel: channel)
}
public func handle(_ call: FlutterMethodCall, result: @escaping FlutterResult) {
result("iOS " + UIDevice.current.systemVersion)
}
public static func dummyMethod() {
dummy_export()
}
}