You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2020/01/02 21:31:34 UTC

[GitHub] [cordova-plugin-inappbrowser] NiklasMerz commented on a change in pull request #584: feat: Add compile-time decision for disabling UIWebView

NiklasMerz commented on a change in pull request #584: feat: Add compile-time decision for disabling UIWebView
URL: https://github.com/apache/cordova-plugin-inappbrowser/pull/584#discussion_r362637477
 
 

 ##########
 File path: src/ios/CDVInAppBrowser.m
 ##########
 @@ -49,86 +51,122 @@ - (void)open:(CDVInvokedUrlCommand*)command
         return;
     }
     self.usewkwebview = browserOptions.usewkwebview;
-    if(self.usewkwebview){
-        [[CDVWKInAppBrowser getInstance] open:command];
-    }else{
-        [[CDVUIInAppBrowser getInstance] open:command];
-    }
+    #if WK_WEB_VIEW_ONLY
 
 Review comment:
   I am not a fan of this build flag, too. It is kind of ugly and hard to get while reading this code (for non-objective-c devs) but I think it is great for an interim solution until #535 gets released in a **major** release hopefully soon.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org