"cordova-plugin-crosswalk-webview" still not work with PGB (Gradle)

  • 3
  • Problem
  • Updated 4 years ago
  • Acknowledged
according to this
http://phonegap.com/blog/2015/06/16/p...
at that moment,PGB not ready to support "gradle" build
so...must be use this fork plugin to instead
org.crosswalk.engine (pgb version)
"we don’t want to maintain a separate fork, so rest assured we are investigating gradle support on PGB and other solutions"

well..
all we know that PGB support the gradle build for now
but I tried many times,the npm version (cordova-plugin-crosswalk-webview) still not work in gradle mode and will still build fail
Photo of ColinBau

ColinBau

  • 730 Posts
  • 18 Reply Likes

Posted 5 years ago

  • 3
Photo of Amir

Amir

  • 8261 Posts
  • 263 Reply Likes
(Edited)
Photo of ColinBau

ColinBau

  • 730 Posts
  • 18 Reply Likes
hi Amir
I have already supply all my information below
Any idea ?

my appid is 697726
and my error log is
http://justpaste.it/obt7
Photo of ColinBau

ColinBau

  • 730 Posts
  • 18 Reply Likes
hi Amir
I use your config.xml (100% the same)
https://raw.githubusercontent.com/ami...
but still build error in Android

my appid is 697726
and my error log is
http://justpaste.it/obt7
Photo of ColinBau

ColinBau

  • 730 Posts
  • 18 Reply Likes
hi Amir
I use my another account to test your project again
my appid is 1714447
I finally know what the problem is

if I use your crosswalk project with...
option1,a keystore file,it will build fail on Android (but I am very sure my keystore file is good to work,because I use it to upload GooglePlay for many times)
option2,no any ketstore file,it will build success
Photo of Amir

Amir

  • 8261 Posts
  • 263 Reply Likes
Hi Bau

Yes I'm able to reproduce. Here is bug report for developer to work on.
https://github.com/phonegap/build/issues/471

Please subscribe & watch for status update.

Thanks.
Photo of ColinBau

ColinBau

  • 730 Posts
  • 18 Reply Likes
thanks Amir reply
Photo of ryan

ryan, Developer

  • 1538 Posts
  • 132 Reply Likes
There are currently issues on Build with plugins that include libraries for both x86 and arm architectures -- specifically the crosswalk plugin in this case. Looking into a fix for this but in the meantime you should source the pgb version of the crosswalk plugin. There's actually two versions of this plugin on build -- one for each architecture (both compile fine both signed and unsigned). The default compiles for arm:

<gap:plugin name="org.crosswalk.engine" version="1.3.0" source="pgb" />

And to build for x86:

<gap:plugin name="org.crosswalk.engine.x86" version="1.3.0" source="pgb" />

Working on better support for the mainline npm crosswalk plugin. Stay tuned.
Photo of ColinBau

ColinBau

  • 730 Posts
  • 18 Reply Likes
hi ryan
thanks for your reply
for a long time ago,actually I have already know we can use the PGB's crosswalk

but now,PGB support gradle,so...this is the true reason why I submit thus issue

well...the PGB version for now have some Defect
look at this
https://www.npmjs.com/package/cordova...
in cordova we can use the "xwalkCommandLine" and set "--disable-pull-to-refresh-effect"

but seem PGB not already this attribute ( "xwalkCommandLine" )
another attribute seem not support ( "CrosswalkAnimatable" )
http://community.phonegap.com/nitobi/...

if we can use this structure in the future when in PGB


<gap:plugin name=org.crosswalk.engine" source="pgb" version="1.3.0" >
<param name="xwalkCommandLine" value="--disable-pull-to-refresh-effect" />
<param name="CrosswalkAnimatable" value="true" />
etc...or much more
</gap:plugin >


I think it is more better
by the way...
I use this PGB's crosswalk version
https://build.phonegap.com/plugins/3722
this plugin is fork form the official and seen solve the android 5.0+ keyboard flickering bug
Photo of ColinBau

ColinBau

  • 730 Posts
  • 18 Reply Likes
hi ryan
is there anything about "disable-pull-to-refresh-effect" ?
Photo of ryan

ryan, Developer

  • 1538 Posts
  • 132 Reply Likes
Not sure -- if that preference isn't working for you, you might have to contact the xwalk developers for assistance.
Photo of ColinBau

ColinBau

  • 730 Posts
  • 18 Reply Likes
OK
I will try to contact with xwalk developers for assistance
Photo of ColinBau

ColinBau

  • 730 Posts
  • 18 Reply Likes
hi Ryan
so...last time you said
"There are currently issues on Build with plugins that include libraries for both x86 and arm architectures -- specifically the crosswalk plugin in this case"

well...if should fix this at first and ask xwalk developers for assistance by the after ?
Photo of ColinBau

ColinBau

  • 730 Posts
  • 18 Reply Likes
hi ryan
there is a new version 1.4.0 with "cordova-plugin-crosswalk-webview"
so...
hope have a new version with the PGB
org.crosswalk.engine
and
org.crosswalk.engine.x86
Photo of ColinBau

ColinBau

  • 730 Posts
  • 18 Reply Likes
just feedback
I have already post a link to Crosswalk team
https://crosswalk-project.org/jira/br...
hope will help some place
Photo of Wanming Lin

Wanming Lin

  • 1 Post
  • 0 Reply Likes
hi, ryan

64 bit support in cordova-plugin-crosswalk-webview plugin is in progress, please track the ticket https://crosswalk-project.org/jira/br...
Photo of Oren Agiv

Oren Agiv

  • 84 Posts
  • 3 Reply Likes
Seems like this has been resolved.
https://crosswalk-project.org/jira/br...

I'm using the following in my config.xml:

But it seems that PhoneGap Build outputs only the .x86 APK.

Any idea how we can download the 64bit APK?
Photo of ColinBau

ColinBau

  • 730 Posts
  • 18 Reply Likes
PGB for now can't did this point
so...
I am using Cordova Cli to instead for a long time ago
Photo of JesseMonroy650 (Volunteer)

JesseMonroy650 (Volunteer), Champion

  • 3325 Posts
  • 122 Reply Likes
As with all things about phonegap, look for a plugin.

Jesse
Photo of bCliks

bCliks

  • 34 Posts
  • 0 Reply Likes
I'm using the following in my config.xml

<plugin name="cordova-plugin-crosswalk-webview"/>

But it seems that PhoneGap Build outputs only the .x86 APK.

Any idea how we can get the 64bit APK (arm)?
Photo of ColinBau

ColinBau

  • 730 Posts
  • 18 Reply Likes
PGB for now can't did this point
so...
I am using Cordova Cli to instead for a long time ago
Photo of Oren Agiv

Oren Agiv

  • 84 Posts
  • 3 Reply Likes
Will send you a plugin that I use and works. 30 minutes.
Photo of ColinBau

ColinBau

  • 730 Posts
  • 18 Reply Likes
hi @Oren
what do you mean ?
the npm resource ?
Photo of Oren Agiv

Oren Agiv

  • 84 Posts
  • 3 Reply Likes
Sending you the details in a few minutes.
Photo of ColinBau

ColinBau

  • 730 Posts
  • 18 Reply Likes
OH!!!
thanks
Photo of bCliks

bCliks

  • 34 Posts
  • 0 Reply Likes
I am waiting :)
Photo of Oren Agiv

Oren Agiv

  • 84 Posts
  • 3 Reply Likes
I'm using this one in my config.xml:
<plugin name="cordova-plugin-crosswalk-webview-pgb-adapt-arm" source="npm" />


Also, I'm using this plugin to prevent any HTTPS certificate alerts on some devices:
<plugin name="cordova-plugin-crosswalk-certificate" source="npm" />
Photo of ColinBau

ColinBau

  • 730 Posts
  • 18 Reply Likes
I can't see anything,all blank
Photo of Petra V.

Petra V., Champion

  • 7794 Posts
  • 1391 Reply Likes
I mentioned that 'adapt' plugin an hour ago in the separate thread bCliks opened (no idea why he did that when he also posted here).
But he apparently rejected that idea and wanted the original plugin to do ARM, too.
Photo of bCliks

bCliks

  • 34 Posts
  • 0 Reply Likes
Looks like @mbuchalik just solved the problem...

https://github.com/MBuchalik/cordova-...

This plugin allows you to build either the x86 version or the arm version in PGB. Pretty cool.