flutter_openssl_crypto/ios/Classes/SwiftFlutterOpensslCryptoPlugin.swift
2021-04-19 20:33:39 +02:00

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)
}
}