zzz_archive [Crosswalk cordova android] - PeterWangIntel/crosswalk-website GitHub Wiki

This page has been promoted to the main website content at https://crosswalk-project.org/#documentation/cordova.

Crosswalk-based Cordova Android

Crosswalk-based Cordova Android is derived from Cordova Android and embeds Crosswalk as the HTML5 runtime. It supports Android 4.0+.

Crosswalk-based Cordova Android aims to be compatible to Cordova Android as much as possible. Basically, you could refer to Cordova Android Platform Guide.

Requires

Please refer to Requirements and Support and Install the SDK in Cordova Android Platform Guide to install JDK, Ant and Android SDK.

And please install Python 2.6 or greater for your system.

Download

Please download the crosswalk-cordova-android development bundle from Download Crosswalk Android. Please pay attention to the release channels and architectures.

For example, download beta 6.35.131.5 for X86:

$ wget https://download.01.org/crosswalk/releases/crosswalk/android/beta/6.35.131.5/x86/crosswalk-cordova-6.35.131.5-x86.zip

for ARM:

$ wget https://download.01.org/crosswalk/releases/crosswalk/android/beta/6.35.131.5/arm/crosswalk-cordova-6.35.131.5-arm.zip

Unzip it and you are ready to create app.

Creating & Running Apps

You could use the command-line tool and Android Developer Tool to create and manage your Crosswalk-based Cordova Android app.

Remote Debugging

Thanks to the remote debugging capability of Crosswalk, you are able to debug your Cordova Apps remotely via Chrome Developer Tools.

Adding Plugins

You could use the plugman command-line tool to add Cordova plugins as needed.

Using Crosswalk in Existing Cordova Apps

You are able to replace Android WebView with Crosswalk in existing Cordova apps.