Cordova Crosswalk Engine is a part of a Proof-of-Concept for third party engines to work with Apache Cordova. This currently only works with the 4.0.x branch of Apache Cordova found on GitHub, and as of yet, does not work with any official Apache Cordova release. This code should still be considered experimental.
Directions (We're still trying to automate more of this, sorry):
Android-only:
- Pull down the
4.0.x
branch of Apache Cordova found here (https://github.com/apache/cordova-android/tree/4.0.x) - Clone this repository.
- Run
sh fetch_libs.sh
to download the Crosswalk library - Generate a project with
./bin/create
- Run Plugman:
plugman install --platform android --plugin <path_to_crosswalk_engine>/cordova-crosswalk-engine/ --project .
- Add the
libs/xwalk_core_library
as a dependency inproject.properties
. (Note: Relative Paths work for libraries, not absolute paths. Manually edit if necessary.)
Cordova CLI:
- Install the latest version of the Cordova CLI from npm (Requires at least 3.5.0-0.2.6)
- Pull down the
4.0.x
branch of Apache Cordova found here (https://github.com/apache/cordova-android/tree/4.0.x) - Clone this repository.
- Run
sh fetch_libs.sh
to download the Crosswalk library - Create a project with
cordova create
- Add the Android platform with
cordova platform add <path to cordova-android>
- Add the Crosswalk Engine plugin with
cordova plugin add <path to crosswalk-engine-plugin>
Requirements:
fetch_libs.sh
requires curl
and unzip
to be installed, and on the current PATH
.