Fix: added compatibility header

This commit is contained in:
edmund 2020-07-31 20:35:27 +08:00
parent 56e0f30928
commit 699c731a40
1 changed files with 7 additions and 0 deletions

View File

@ -16,7 +16,14 @@
*/
#import "InAppWebViewFlutterPlugin.h"
#if __has_include(<flutter_inappwebview/flutter_inappwebview-Swift.h>)
#import <flutter_inappwebview/flutter_inappwebview-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_inappwebview-Swift.h"
#endif
@implementation InAppWebViewFlutterPlugin : NSObject
+ (void)registerWithRegistrar:(NSObject<FlutterPluginRegistrar>*)registrar {