Skip to content

Instantly share code, notes, and snippets.

@bangonkali
Last active August 29, 2015 14:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bangonkali/fdb156714d7e1c7a0743 to your computer and use it in GitHub Desktop.
Save bangonkali/fdb156714d7e1c7a0743 to your computer and use it in GitHub Desktop.
Meteor Cordova Crosswalk Integration
Setup the Android SDK on Linux/Mac.

https://spring.io/guides/gs/android/#android-dev-env
http://xmodulo.com/how-to-install-apache-ant-on-centos.html

wget https://download.01.org/crosswalk/releases/crosswalk/android/stable/11.40.277.7/arm/crosswalk-cordova-11.40.277.7-arm.zip
unzip crosswalk-cordova-11.40.277.7-arm.zip

https://meteor.hackpad.com/Building-Meteor-app-with-Crosswalk-kHKh4DzGxFQ
http://stackoverflow.com/questions/24931155/cordova-3-5-0-install-error-please-install-android-target-19
https://gist.github.com/andreivolt/7d40211bd5ed361e844f
https://github.com/andreivolt/meteor-cordova-crosswalk-demo/issues/3
https://github.com/andreivolt/meteor-cordova-crosswalk-demo
https://github.com/meteor/meteor/wiki/Meteor-Cordova-Phonegap-integration#advanced-build-customization
https://developer.android.com/sdk/index.html
http://stackoverflow.com/questions/10941549/install-android-sdk-using-command-line-linux
http://stackoverflow.com/questions/4569683/how-to-install-android-sdk-on-linux-using-cli-only/4569792#
http://stackoverflow.com/questions/26885616/target-a-specific-version-of-android-with-meteor
https://github.com/meteor/meteor/wiki/Meteor-Cordova-Phonegap-integration
Install ant http://xmodulo.com/how-to-install-apache-ant-on-centos.html
wget http://www.us.apache.org/dist/ant/binaries/apache-ant-1.9.6-bin.tar.gz
sudo tar xvfvz apache-ant-1.9.6-bin.tar.gz -C /opt
sudo ln -s /opt/apache-ant-1.9.6 /opt/ant
sudo sh -c 'echo ANT_HOME=/opt/ant >> /etc/environment'
sudo ln -s /opt/ant/bin/ant /usr/bin/ant
ant -version

export ANDROID_HOME=/home/devengr/android-sdk-linux
export PATH=${PATH}:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools

sudo sh -c 'echo ANT_HOME=/home/devengr/android-sdk-linux/tools/ >> /etc/environment'
/home/devengr/android-sdk-linux/tools/android
ANDROID_HOME

/home/devengr/android-sdk-linux/tools/android

/home/devengr/android-sdk-linux/tools/android sdk --no-ui
/home/devengr/android-sdk-linux/tools/android update  sdk --no-ui


/home/devengr/android-sdk-linux/tools/android update project --subprojects --path . --target "android-19"




apache-ant-1.9.6-bin.tar.gz







rm -rf CordovaLib/*
cp -a ~/crosswalk-cordova-13.42.319.11-arm/framework/* CordovaLib/
cp -R ~/crosswalk-cordova-13.42.319.11-arm/framework/xwalk_core_library/libs/armeabi-v7a CordovaLib/xwalk_core_library/libs/
cp ~/crosswalk-cordova-13.42.319.11-arm/VERSION VERSION
cd CordovaLib
android update project --subprojects --path . --target "android-19"
ant debug
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment