-
Notifications
You must be signed in to change notification settings - Fork 16
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
WebView+ not being installed #36
Comments
Hi, same here! It just says successful, but I don't see the changes on CordovaWebview.java and project.properties. |
It seems like in the hooks/after_plugin_add/com.ludei.webview.plus.js line 48, it only gets the first plugin in your project's plugin list instead of compiling all your project's plugins and looking for com.ludei.webview.plus where it should install WebView+ (line 64). I can't seem to find a workaround for this. Any help is greatly appreciated. Cordova version: 3.6.3-0.2.13 |
FYI, I'm trying to install and build on OSX, which I'm using to build both the Android and iOS build. |
To get webview+ you have to create the project using cocoonjs cli add the webview+ plugin and build at least once before adding any other plugins otherwise it will run in default webview |
How does that combine with the after_platform_add hook? I.e. we're using a script to install the plugins we need after adding the platform, as suggested by this article: http://devgirl.org/2013/11/12/three-hooks-your-cordovaphonegap-project-needs/ |
Just create the project using cocoonjs cli, add the platform, then the webview+ plugin and run it once. |
But that doesn't really add up with bash script execution, which basically is set up to look like this at the moment:
We don't want to manually define the list of plugins to add here, especially with the after_platform_add hook possibility. |
Why would you remove the platform in the first place? |
That's just to clean up from the previous build and start fresh |
Ok, I guess you must have your own reasons for doing it this way, I never have to remove the platform in my project. I guess what you can do is have the bash script add the webview+ and run build an initial time and then continue to automatically add the plugins and re-build a second time. |
I just tried a quick change, removing the after_platform_add hook, and that installed WebView+. But then I added the additional plugins in the bash script, and then re-built the app, and now it's gone again. I.e. the script is:
|
Could you paste the script? |
|
I just tried a quick modification of the script, removing the initial lines:
And then I did the following:
It seems like whenever I add other plugins, even after first adding the platform, adding webview+ and building the app, it removes webview+. |
@TheBikingViking I am on windows so I cant help you with OSX, but running a similar bat file on my pc runs perfectly. I have added the following code in after_platform_add hooks:
|
@TheBikingViking as a workaround, this is what I did:
Result: Note: If you need help on the modified hook file, just let me know. |
@severedsea that sounds very interesting. Would love to see what you did with the modified hook file. |
Here is the modified hook file, copied to after_platform_add folder. I'm not sure how to get all the process.env values so I just hard-coded it for my personal use at the moment. If you have better ways to do this, please do share. :)
|
Hi
I'm trying to get WebView+ installed for an existing Cordova project, and to do this, I run the following CLI commands:
cocoonjs platform add android
cocoonjs plugin add com.ludei.webview.plus
cocoonjs build android
All of these commands run as expected with success messages; however, WebView+ does actually NOT get installed. The safest way to measure this is by looking at the produced .apk file, which comes in at 11mb - same as before.
Cordova CLI version: 4.1.2
CocoonJS CLI version: 1.0.0-0.8.0
I seem to be following the guide by the book, everything runs fine, but WebView+ is not installed. Can someone help out?
FYI, the same happens with the iOS build (using com.ludei.ios.webview.plus)
The text was updated successfully, but these errors were encountered: