Fix compile iOS issue (#12)

* fix ios compile
This commit is contained in:
Hiroshi Horie
2021-10-01 03:57:16 +09:00
committed by GitHub
parent 001f688729
commit 84618cf56f
6 changed files with 10 additions and 11 deletions
+15
View File
@@ -0,0 +1,15 @@
#import "LiveKitPlugin.h"
#if __has_include(<livekit_client/livekit_client-Swift.h>)
#import <livekit_client/livekit_client-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 "livekit_client-Swift.h"
#endif
@implementation LiveKitPlugin
+ (void)registerWithRegistrar:(NSObject<FlutterPluginRegistrar>*)registrar {
[SwiftLiveKitPlugin registerWithRegistrar:registrar];
}
@end