mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2025-07-28 19:36:13 +00:00

* chore: run flutter create on flowy_sdk * chore: rename flowy-sdk to flowy-core * chore: rename flowy_sdk to appflowy_backend * chore: fix windows build * chore: replace bloctest with test Co-authored-by: nathan <nathan@appflowy.io> Co-authored-by: vedon <vedon.fu@gmail.com>
19 lines
611 B
Swift
19 lines
611 B
Swift
import Flutter
|
|
import UIKit
|
|
|
|
public class SwiftAppFlowyBackendPlugin: NSObject, FlutterPlugin {
|
|
public static func register(with registrar: FlutterPluginRegistrar) {
|
|
let channel = FlutterMethodChannel(name: "appflowy_backend", binaryMessenger: registrar.messenger())
|
|
let instance = SwiftAppFlowyBackendPlugin()
|
|
registrar.addMethodCallDelegate(instance, channel: channel)
|
|
}
|
|
|
|
public func handle(_ call: FlutterMethodCall, result: @escaping FlutterResult) {
|
|
result("iOS " + UIDevice.current.systemVersion)
|
|
}
|
|
|
|
public static func dummyMethodToEnforceBundling() {
|
|
link_me_please()
|
|
}
|
|
}
|