初始化仓库

This commit is contained in:
Jin857
2024-10-15 15:31:53 +08:00
parent ad2fc55133
commit e3f5f1340e
179 changed files with 6410 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
import Cocoa
import FlutterMacOS
public class UnionAdSsgfPlugin: NSObject, FlutterPlugin {
public static func register(with registrar: FlutterPluginRegistrar) {
let channel = FlutterMethodChannel(name: "union_ad_ssgf", binaryMessenger: registrar.messenger)
let instance = UnionAdSsgfPlugin()
registrar.addMethodCallDelegate(instance, channel: channel)
}
public func handle(_ call: FlutterMethodCall, result: @escaping FlutterResult) {
switch call.method {
case "getPlatformVersion":
result("macOS " + ProcessInfo.processInfo.operatingSystemVersionString)
default:
result(FlutterMethodNotImplemented)
}
}
}