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
807 B
22 lines
807 B
#import "FlutterCocosWidgetPlugin.h"
|
|
#import <Foundation/Foundation.h>
|
|
#if __has_include(<flutter_cocos_view/flutter_cocos_-Swift.h>)
|
|
#import <flutter_cocos_view/flutter_cocos_view-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 <flutter_cocos_view/flutter_cocos_view-Swift.h>
|
|
#endif
|
|
|
|
@implementation FlutterCocosWidgetPlugin {
|
|
NSObject<FlutterPluginRegistrar>* _registrar;
|
|
FlutterMethodChannel* _channel;
|
|
NSMutableDictionary* _cocosControllers;
|
|
}
|
|
|
|
+ (void)registerWithRegistrar:(NSObject<FlutterPluginRegistrar>*)registrar {
|
|
[SwiftFlutterCocosViewPlugin registerWithRegistrar:registrar];
|
|
}
|
|
|
|
@end
|
|
|