Skip to content

A documentation on how to build android app from meteor using crosswalk

Notifications You must be signed in to change notification settings

sujith3g/crosswalk-for-meteor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Crosswalk-for-meteor

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.

Steps for building apk

  1. cd meteor_app
  2. meteor build .build --server host:port replace host and port
  3. mkdir .build-tools && cd .build-tools
  4. wget https://s3.amazonaws.com/meteor-mobile/crosswalk-11.40.277.1.zip
  5. unzip crosswalk-11.40.277.1.zip
  6. replace crosswalk-11.40.277.1/crosswalk-arm/framework/src/org/apache/cordova/CordovaWebView.java with CordovaWebView.java file provided in this repo
  7. cd .. move to meteor_app/ directory
  8. rm -Rf .meteor/local/cordova-build/platforms/android/CordovaLib/*
  9. cp -a .build-tools/crosswalk-11.40.277.1/crosswalk-arm/framework/* .meteor/local/cordova-build/platforms/android/CordovaLib/
  10. cp -a .build-tools/crosswalk-11.40.277.1/crosswalk-arm/VERSION .meteor/local/cordova-build/platforms/android/
  11. cd .meteor/local/cordova-build/platforms/android/CordovaLib/
  12. android update project --subprojects --path . --target "android-21"
  13. ant debug
  14. cd .. move to .meteor/local/cordova-build/platforms/android/
  15. rm -Rf ant-gen;
  16. rm -Rf ant-build;
  17. add wifi permission <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" /> to .meteor/local/cordova-build/platforms/android/AndroidManifest.xml
  18. cd ../../ move to .meteor/local/cordova-build/
  19. cordova build android or cordova build android --release
  20. for signing & zipalign, follow this after release build.

About

A documentation on how to build android app from meteor using crosswalk

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages