Merge pull request #466 from Eddayy/master
Fix: added iOS fallback module import
This commit is contained in:
commit
b9bde3af45
|
@ -16,7 +16,14 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#import "InAppWebViewFlutterPlugin.h"
|
#import "InAppWebViewFlutterPlugin.h"
|
||||||
|
#if __has_include(<flutter_inappwebview/flutter_inappwebview-Swift.h>)
|
||||||
#import <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
|
@implementation InAppWebViewFlutterPlugin : NSObject
|
||||||
+ (void)registerWithRegistrar:(NSObject<FlutterPluginRegistrar>*)registrar {
|
+ (void)registerWithRegistrar:(NSObject<FlutterPluginRegistrar>*)registrar {
|
||||||
|
|
Loading…
Reference in New Issue