mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00
16 lines
591 B
Cheetah
16 lines
591 B
Cheetah
#import "{{pluginClass}}.h"
|
|
#if __has_include(<{{projectName}}/{{projectName}}-Swift.h>)
|
|
#import <{{projectName}}/{{projectName}}-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 "{{projectName}}-Swift.h"
|
|
#endif
|
|
|
|
@implementation {{pluginClass}}
|
|
+ (void)registerWithRegistrar:(NSObject<FlutterPluginRegistrar>*)registrar {
|
|
[Swift{{pluginClass}} registerWithRegistrar:registrar];
|
|
}
|
|
@end
|