Convert a Cordova/Ionic project to a Crosswalk project
Converts an existing Cordova/Ionic project to a Crosswalk project. When the script is done running, you should have a fat 40MB APK file in
This assumes you have the following already installed:
android, and that your
ANDROID_HOME is set to point to the Android SDK.
This will work on both x86 and ARM. If you want to build two separate APKs so that they're smaller, then modify the script; the script at least shows how it works.
Step 1: download the "Cordova Android" libraries from the Crosswalk downloads page. You don't need anything except for the "Cordova Android" ones.
Step 2 Unzip them both.
Step 3 Navigate to your project directory and run:
./prepare_crosswalk \ /path/to/crosswalk-cordova-VERSION-x86 \ /path/to/crosswalk-cordova-VERSION-arm
Then run either:
ionic build android # for ionic
cordova build android # for cordova
Thanks to this article for figuring out how to get this to work.