Skip to content
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

Renaming iOS classes to not conflict with future cordova-ios release #430

Closed
wants to merge 2 commits into from
Closed

Conversation

bpresles
Copy link

@bpresles bpresles commented Sep 3, 2019

As Apple will stop accepting submissions of app having any reference of UIWebView in the future and started to warn developers on that aspect, the cordova-ios project will have to make a move to WKWebView as default engine.

An issue is already opened apache/cordova-ios#661, as well as a PR from myself (apache/cordova-ios#663) that is embedding the classes of the cordova-plugin-wkwebview-engine that share similar names as the one used by some classes in cordova-plugin-ionic-webview, provoking duplicate symbols at build time.

This PR includes refactoring of all CDV*.h/.m files of this plugin to ION*.h/.m naming convention instead.
It has been tested on a Ionic project using both forked cordova-ios from https://github.com/bpresles/cordova-ios, that include CDVWKWebViewEngine and the present modified cordova-plugin-ionic-webview from https://github.com/bpresles/cordova-plugin-ionic-webview and the app is indeed using Ionic WKWebView correctly:

2019-09-04 00:12:42.405396+0200 MyApp[87841:1187296] Using Ionic WKWebView

@bpresles
Copy link
Author

bpresles commented Sep 4, 2019

Finally I decided to rename the classes on my cordova-ios fork directly so it'll work with all existing engine plugins out of the box.

@bpresles bpresles closed this Sep 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant