-
1. Re: Crosswalk Lite support in phonegap build
ryanskiheadApr 15, 2016 11:52 AM (in response to bCliks)
After a bit of googling, according to this discussion, the lite version has been integrated into the plugin. And looking at the commit history on the plugin source, it looks like its available in 1.6.1. Appears to be set by a plugin variable XWALK_MODE="lite". Give this a try:
<plugin name="cordova-plugin-crosswalk-webview" version="1.6.1">
<param name="XWALK_MODE" value="lite">
</plugin>
-
2. Re: Crosswalk Lite support in phonegap build
bCliks Apr 17, 2016 11:28 PM (in response to ryanskihead)1 person found this helpfulryanskihead Thanks ryan. But how to build ARM and x86 APKs using crosswalk lite. Is there any param available for that?
And one more help. Does phonegap build support latest version (npm source) of crosswalk?
-
3. Re: Crosswalk Lite support in phonegap build
kerrishottsApr 18, 2016 10:36 AM (in response to bCliks)
1.6.1 is the latest version. Using the plugin tag supplied by ryanskihead, you'll be sourcing from npm as well.
As for x86, there's another plugin that generates an x86 build -- see cordova-plugin-crosswalk-webview-pgb-adapt-x86
Unfortunately, it looks a bit older, so I'm not sure the lite version is available there.
-
4. Re: Crosswalk Lite support in phonegap build
bCliks Apr 21, 2016 4:37 AM (in response to ryanskihead)1 person found this helpfulryanskihead
As per your suggestion, tried like below,<plugin name="cordova-plugin-crosswalk-webview" version="1.6.1">
<param name="XWALK_MODE" value="lite">
</plugin>
Build failed getting error message as malformed config.xml
Build Log:
FAILURE: Build failed with an exception.* Where:
Script '/project/cordova-plugin-crosswalk-webview/app-xwalk.gradle' line: 77
* What went wrong:
A problem occurred evaluating script.
> Could not find property 'xwalkMultipleApk' on root project 'project'.
And also tried without <param name="XWALK_MODE" value="lite"> this tag.
It is also failed.
So it seems PGB not supported npm version of crosswalk.
Support only <plugin name="org.crosswalk.engine" source="pgb"/>.
So we cant use latest version of Crosswalk and Crosswalk lite in PGB. Am I right?
Or any workaround are there? If No, May I know Any roadmap to support latest crosswalk with Multiple APK support (ARM|x86).
Thanks
-
5. Re: Crosswalk Lite support in phonegap build
ryanskiheadApr 21, 2016 1:27 PM (in response to bCliks)
1 person found this helpfulThat plugin xml declaration was missing a slash which cause the malformed config.xml error. Use this:
<plugin name="cordova-plugin-crosswalk-webview" version="1.6.1">
<param name="XWALK_MODE" value="lite" />
</plugin>
I just tried it, compiled successfully for me. Also maybe make sure you're using the latest version of PhoneGap:
<preference name="phonegap-version" value="cli-6.0.0" />
-
6. Re: Crosswalk Lite support in phonegap build
bCliks Apr 22, 2016 12:13 AM (in response to ryanskihead)ryanskihead
Again rebuild with that closing tag changes I got build failed error.
Oh geez. Your build failed. Sorry, but a problem occurred on the build serverThis is the full Log file of this build.
APP ID: 946723And Yes. I am using phonegap-version - cli-6.0.0
-
7. Re: Crosswalk Lite support in phonegap build
kerrishottsApr 22, 2016 8:37 AM (in response to bCliks)
Could you post your entire config.xml (sans any identifying information you don't want out there)? Perhaps there's a conflict with something else in your config.xml that's causing the problem.
-
8. Re: Crosswalk Lite support in phonegap build
ryanskiheadApr 25, 2016 8:12 PM (in response to bCliks)
1 person found this helpfulStrangely the absence of an android versionCode appears to cause this error. Try adding:
<preference name="android-versionCode" value="1" />
-
9. Re: Crosswalk Lite support in phonegap build
bCliks Apr 25, 2016 11:19 PM (in response to ryanskihead)1 person found this helpfulAh. Now build working. There is no apk size difference using Crosswalk lite build via PGB. If I build using CLI, I get half of apk size using crosswalk Lite.
And PGB gives x86 apk with certificate, and gives arm apk without certificate. (when using npm version of latest crosswalk)
Strange. -
10. Re: Crosswalk Lite support in phonegap build
martinb77004568 May 1, 2016 6:05 AM (in response to bCliks)Has anybody found a solution to target ARM only? I do not want to build using xwalkMultipleApk since it increases the size of my application to about 40mb... Is there any reason why the unsigned apk is built for ARM and the signed one for x86?
-
11. Re: Crosswalk Lite support in phonegap build
bCliks May 9, 2016 6:40 AM (in response to martinb77004568)1 person found this helpfulLooks like @mbuchalik just solved the problem...
https://github.com/MBuchalik/cordova-build-architecture
This plugin allows you to build either the x86 version or the arm version in PGB. Pretty cool.
-
12. Re: Crosswalk Lite support in phonegap build
oleksiyn95225167 Aug 25, 2016 8:45 AM (in response to bCliks)build is failed for me
<preference name="phonegap-version" value="cli-6.3.0" />
<preference name="android-minSdkVersion" value="16" />
<preference name="android-targetSdkVersion" value="23" />
<plugin name="cordova-plugin-crosswalk-webview" source="npm" version="2.0.0" />
<preference name="xwalkMode" value="lite" />
works fine without "lite"
<preference name="xwalkMode" value="lite" />anybody know how to make build with crosswalk lite?
-
13. Re: Crosswalk Lite support in phonegap build
aadamu Sep 22, 2016 5:05 AM (in response to oleksiyn95225167)Try
<preference name="xwalkVersion" value="org.xwalk:xwalk_core_library:14+" />
and replace the plugin with <gap:plugin name="cordova-plugin-crosswalk-webview-pgb-adapt" source="npm" version="1.4.0-dev-5"/>
Hope that helps