Skip to content

Commit

Permalink
Merge pull request #466 from Eddayy/master
Browse files Browse the repository at this point in the history
Fix: added iOS fallback module import
  • Loading branch information
pichillilorenzo authored Sep 7, 2020
2 parents 7cec791 + 699c731 commit b9bde3a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions ios/Classes/InAppWebViewFlutterPlugin.m
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,14 @@ Licensed to the Apache Software Foundation (ASF) under one
*/

#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 {
Expand Down

0 comments on commit b9bde3a

Please sign in to comment.