flutter_openssl_crypto/ios/Classes/SwiftFlutterOpensslCryptoPlugin.swift

15 lines
547 B
Swift
Raw Normal View History

2021-04-19 18:33:39 +00:00
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)
}
}