* hv
* Change build version
This commit is contained in:
mkyq
2022-03-30 17:57:04 +02:00
committed by GitHub
parent e7e419bc83
commit 01150ef2a7
213 changed files with 23972 additions and 672 deletions
@@ -0,0 +1,4 @@
#import <Flutter/Flutter.h>
@interface CwSharedExternalPlugin : NSObject<FlutterPlugin>
@end
@@ -0,0 +1,15 @@
#import "CwSharedExternalPlugin.h"
#if __has_include(<cw_shared_external/cw_shared_external-Swift.h>)
#import <cw_shared_external/cw_shared_external-Swift.h>
#else
// Support project import fallback if the generated compatibility header
// is not copied when this plugin is created as a library.
// https://forums.swift.org/t/swift-static-libraries-dont-copy-generated-objective-c-header/19816
#import "cw_shared_external-Swift.h"
#endif
@implementation CwSharedExternalPlugin
+ (void)registerWithRegistrar:(NSObject<FlutterPluginRegistrar>*)registrar {
[SwiftCwSharedExternalPlugin registerWithRegistrar:registrar];
}
@end
@@ -0,0 +1,14 @@
import Flutter
import UIKit
public class SwiftCwSharedExternalPlugin: NSObject, FlutterPlugin {
public static func register(with registrar: FlutterPluginRegistrar) {
let channel = FlutterMethodChannel(name: "cw_shared_external", binaryMessenger: registrar.messenger())
let instance = SwiftCwSharedExternalPlugin()
registrar.addMethodCallDelegate(instance, channel: channel)
}
public func handle(_ call: FlutterMethodCall, result: @escaping FlutterResult) {
result("iOS " + UIDevice.current.systemVersion)
}
}