Commit 699c731a authored by edmund's avatar edmund

Fix: added compatibility header

parent 56e0f309
......@@ -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 {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment