mirror of
				https://github.com/AppFlowy-IO/AppFlowy.git
				synced 2025-10-31 18:15:09 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			19 lines
		
	
	
		
			590 B
		
	
	
	
		
			Swift
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			590 B
		
	
	
	
		
			Swift
		
	
	
	
	
	
| import Flutter
 | |
| import UIKit
 | |
| 
 | |
| public class SwiftFlowySdkPlugin: NSObject, FlutterPlugin {
 | |
|   public static func register(with registrar: FlutterPluginRegistrar) {
 | |
|     let channel = FlutterMethodChannel(name: "flowy_sdk", binaryMessenger: registrar.messenger())
 | |
|     let instance = SwiftFlowySdkPlugin()
 | |
|     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()
 | |
|   }
 | |
| }
 | 
