forked from axiom-team/gecko
19 lines
580 B
Swift
19 lines
580 B
Swift
|
import Flutter
|
||
|
import UIKit
|
||
|
|
||
|
public class SwiftDubpPlugin: NSObject, FlutterPlugin {
|
||
|
public static func register(with registrar: FlutterPluginRegistrar) {
|
||
|
let channel = FlutterMethodChannel(name: "dubp", binaryMessenger: registrar.messenger())
|
||
|
let instance = SwiftDubpPlugin()
|
||
|
registrar.addMethodCallDelegate(instance, channel: channel)
|
||
|
}
|
||
|
|
||
|
public func handle(_ call: FlutterMethodCall, result: @escaping FlutterResult) {
|
||
|
result("iOS " + UIDevice.current.systemVersion)
|
||
|
}
|
||
|
|
||
|
public static func dummyMethodToEnforceBundling() {
|
||
|
last_error_length()
|
||
|
}
|
||
|
}
|