You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

22 lines
592 B

//
// MinPlugin.swift
// Runner
//
// Created by on 2021/6/18.
//
import Foundation
import Flutter
import UIKit
public class SwiftMinPlugin: NSObject, FlutterPlugin {
public static func register(with registrar: FlutterPluginRegistrar) {
let channel = FlutterMethodChannel(name: "min", binaryMessenger: registrar.messenger())
let instance = SwiftMinPlugin()
registrar.addMethodCallDelegate(instance, channel: channel)
}
public func handle(_ call: FlutterMethodCall, result: @escaping FlutterResult) {
result("iOS " + UIDevice.current.systemVersion)
}
}