14 lines
547 B
Swift
14 lines
547 B
Swift
import Flutter
|
|
import UIKit
|
|
|
|
public class SwiftFlutterOpensslCryptoPlugin: NSObject, FlutterPlugin {
|
|
public static func register(with registrar: FlutterPluginRegistrar) {
|
|
let channel = FlutterMethodChannel(name: "flutter_openssl_crypto", binaryMessenger: registrar.messenger())
|
|
let instance = SwiftFlutterOpensslCryptoPlugin()
|
|
registrar.addMethodCallDelegate(instance, channel: channel)
|
|
}
|
|
|
|
public func handle(_ call: FlutterMethodCall, result: @escaping FlutterResult) {
|
|
result("iOS " + UIDevice.current.systemVersion)
|
|
}
|
|
}
|