4

I have a native app that I'm using Phonegap Build to compile. I am trying to use the Crosswalk Webview plugin in my app.

According to the official Phonegap blog, all plugins are now hosted on NPM. According to this blog post, plugins tagged ecosystem:cordova should work with Phonegap Build.

While trying to include the cordova-plugin-crosswalk-webview (here), Phonegap Build fails with a very generic error message ("Oh geez. Your build failed. Sorry, but a problem occurred on the build server").

Has anyone else experienced this? Or has anyone else been able to get Crosswalk to work with Phonegap Build?

tommybond
  • 650
  • 6
  • 19

1 Answers1

2

The official version in the PhoneGap Build curated plugins list will build for arm, though note that it is an older version. To use it:

<plugin name="org.crosswalk.engine" spec="1.3.0" source="pgb" />

for x86

<plugin name="org.crosswalk.engine.x86" spec="1.3.0" source="pgb" />

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

<plugin name="cordova-plugin-crosswalk-webview" source="npm" />
<plugin name="cordova-build-architecture" spec="https://github.com/MBuchalik/cordova-build-architecture.git#v1.0.1" source="git" />
<preference name="buildArchitecture" value="x86" />
bCliks
  • 2,918
  • 7
  • 29
  • 52
  • 1
    I saw that official version in the PhoneGap Build plugins list but when I visit that list now, it tells me that list is deprecated and to use the NPM `cordova plugins` repository. Also, with the latest update to PhoneGap Build, in the blog post I linked to it says to use the plugins hosted there and the only version of Crosswalk I see there is a newer one, which is why I thought there was a way to use that now. – tommybond Jul 22 '16 at 14:49
  • does the alternative solution work for anyone? It still produces an .apk with both arm and x86 versions – Sarantis Tofas Aug 25 '16 at 15:19
  • were you able to make this work with phonegap build? :) – Woppi Oct 21 '16 at 06:14
  • @bCliks thanks, which one did you use the pgb source or npm? – Woppi Oct 21 '16 at 08:04
  • @Woppi npm version working fine. FYI: Access to pgb public plugins will be removed on November 15th, 2016. – bCliks Oct 21 '16 at 10:09