-
Notifications
You must be signed in to change notification settings - Fork 984
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add optional compile-time decision for disabling UIWebView #715
Conversation
Codecov Report
@@ Coverage Diff @@
## master #715 +/- ##
==========================================
+ Coverage 74.08% 74.24% +0.15%
==========================================
Files 11 11
Lines 1829 1844 +15
==========================================
+ Hits 1355 1369 +14
- Misses 474 475 +1
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code looks OK to me.
I would like one more review if possible.
As I see it, the goal of this PR is implement the minimum required changes to disable UIWebView during compile-time when the WKWebView only flag is set. The PR is targeted for a minor release so that these changes should not change the output of a default build. (UIWebView should remain default.)
@jcesarmobile Can you please explain us clearly the steps you followed. we also used to get the warning email from apple when we used ionic3, cordova 8.1.2, but currently we have updated our app to IONIC4 and Cordova 9.0.0 (did't deploy app to store yet with updated framework) Is just adding: < preference name="WKWebViewOnly" value="true" / >, in our config.xml and run cordova prepare ios; enough. Am not clear how to clone this repo. Please explain any other steps involved, so that I will also give a try Below is the IONIC INFO: Ionic: ionic (Ionic CLI) : 4.5.0 Cordova: cordova (Cordova CLI) : 8.1.2 (cordova-lib@8.1.1) System: ios-deploy : 1.9.4 Thanks for your time |
you have to clone the repository Now if you add Updated comment since it's merged and I deleted my branch |
Thanks for the response will try it and will let you know |
This is a great change--thanks for it. Should it be added to readme for more visibility? |
Also, I see the 5.1.0 release hasn't made it to npm registry yet. Is there anything I can do to help with this? |
It’s in the Apache release process at the moment, will take a few days to be released if everything goes fine. |
Don't really understand the question |
Oh wow you sir did surely save my life! This works and no more warning in the email! |
Based on #662, updated the prepare script to also modify the CordovaLib project so no removing and re adding platform is needed when
<preference name="WKWebViewOnly" value="true" />
was added to theconfig.xml
after the platform was added.Also makes it possible to unset the value, the implementation on #662 didn't allow to change the value back to 0 without removing the platform.
I added the modified platform and submitted to App store and got the warning, then added
<preference name="WKWebViewOnly" value="true" />
, rancordova prepare ios
, submitted again and didn't get the warning.closes: #662