- Build meteor:
meteor build .build --server "https://server/url"
- Download the [crosswalk cordova package][1], rename the framework/ to CordovaLib, and copy it to override meteor build's CordovaLib.
- Add VERSION file:
cp <path_to_unpacked_arm_bundle>/VERSION VERSION
- Add permissons to manifest:
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
- Clean the app:
cd .build/android/project
ant clean
android update project --subprojects --path . --target "android-21"
- Build the CrossWalk:
cd CordovaLib/
android update project --subprojects --path . --target "android-21"
ant debug/release
- Build app:
ant debug/release
- To fix the compile errors:
cd CordovaLib
ant clean; ant debug/build;
ln -s bin ant-build
cd xwalk_core_library
ant clean; ant debug/build;
ln -s bin ant-build
- To fix the "canGoBack" not found error: simply replace
webView.canGoBack()
with
webView.getNavigationHistory().canGoBack()
- [Slava's build guide][2]
- [andreivolt's gist][3] [1]: https://download.01.org/crosswalk/releases/crosswalk/android/stable [2]: https://meteor.hackpad.com/Building-Meteor-app-with-Crosswalk-kHKh4DzGxFQ [3]: https://gist.github.com/andreivolt/7d40211bd5ed361e844f
Thanks for this.
I downloaded this Crosswalk build to my mac: https://download.01.org/crosswalk/releases/crosswalk/android/stable/latest/arm/crosswalk-cordova-14.43.343.17-arm.zip
My
android update
failed on the clean step:Any help appreciated.