Merge pull request #466 from Eddayy/master

Fix: added iOS fallback module import
This commit is contained in:
Lorenzo Pichilli 2020-09-07 09:56:22 +02:00 committed by GitHub
commit b9bde3af45
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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 {