2023-01-08 12:10:53 +08:00
|
|
|
#import "AppFlowyBackendPlugin.h"
|
|
|
|
#if __has_include(<appflowy_backend/appflowy_backend-Swift.h>)
|
|
|
|
#import <appflowy_backend/appflowy_backend-Swift.h>
|
2021-06-19 23:41:19 +08:00
|
|
|
#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
|
2023-01-08 12:10:53 +08:00
|
|
|
#import "appflowy_backend-Swift.h"
|
2021-06-19 23:41:19 +08:00
|
|
|
#endif
|
|
|
|
|
2023-01-08 12:10:53 +08:00
|
|
|
@implementation AppFlowyBackendPlugin
|
2021-06-19 23:41:19 +08:00
|
|
|
+ (void)registerWithRegistrar:(NSObject<FlutterPluginRegistrar>*)registrar {
|
2023-01-08 12:10:53 +08:00
|
|
|
[SwiftAppFlowyBackendPlugin registerWithRegistrar:registrar];
|
2021-06-19 23:41:19 +08:00
|
|
|
}
|
|
|
|
@end
|