2021-11-20 09:34:43 +08:00

19 lines
590 B
Swift

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