A documentation on how to build android app from meteor using crosswalk-11.40.277.1-arm
. This steps I found from here. In which we will be replacing the src/org/apache/cordova/CordovaWebView.java
file.
crosswalk-11.40.277.1.zip
provided in the repo is CordovaWebView.java
replaced version of crosswalk-11.40.277.1-arm
, By using crosswalk-11.40.277.1.zip
provided in the repo You can skip Step 4 to 6.
cd meteor_app
meteor build .build --server host:port
replace host and portmkdir .build-tools && cd .build-tools
wget https://s3.amazonaws.com/meteor-mobile/crosswalk-11.40.277.1.zip
unzip crosswalk-11.40.277.1.zip
- replace
crosswalk-11.40.277.1/crosswalk-arm/framework/src/org/apache/cordova/CordovaWebView.java
withCordovaWebView.java
file provided in this repo cd ..
move to meteor_app/ directoryrm -Rf .meteor/local/cordova-build/platforms/android/CordovaLib/*
cp -a .build-tools/crosswalk-11.40.277.1/crosswalk-arm/framework/* .meteor/local/cordova-build/platforms/android/CordovaLib/
cp -a .build-tools/crosswalk-11.40.277.1/crosswalk-arm/VERSION .meteor/local/cordova-build/platforms/android/
cd .meteor/local/cordova-build/platforms/android/CordovaLib/
android update project --subprojects --path . --target "android-21"
ant debug
cd ..
move to .meteor/local/cordova-build/platforms/android/rm -Rf ant-gen;
rm -Rf ant-build;
- add wifi permission
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
to.meteor/local/cordova-build/platforms/android/AndroidManifest.xml
cd ../../
move to .meteor/local/cordova-build/cordova build android
orcordova build android --release
- for signing & zipalign, follow this after release build.