As of Meteor 0.9.2 there is built-in support for Cordova and Phonegap.
meteor-phonegap is a quick and convenient way to turn a Meteor project into an Android Phonegap app that you can upload to the Google Play Developer Console.
You could take the cordova project and continue to develop that but that would be like forking your own project. We're trying to create a way to allow you to keep developing your Meteor project with only minor additions related phonegap settings, i.e. config.xml and AndroidManifest.xml for Android. Great for prototyping and in-house apps.
There's tons of stuff to do and improve. Your patches, bug reports and feature requests are very welcome on github. Help with adding more platforms is highly appreciated.
I haven't yet used this in a professional context myself. If you are using it to make money or you want to incite me to work on this more: BTC donations welcome at 1BPeqWrfaoUFC3SWXmU1N2jKset7kThA59
Also check out the https://github.com/spacecapsule project which is more active as of late 2013
Add both the Android SDK
build-tools/android-x.x to your
I'm still not 100% sure about the relationship between Cordova and
Phonegap but the
cordova cli tool is extremely useful. We presume
you kinda know what
npm is and you have it installed on your system.
Now, make sure
node is up-to-date (at least v0.8.20 around February
2013) and run the following:
sudo npm install -g cordova
You possibly want to
chown -R yourself
meteor2cordova.coffee turns any Meteor app into a Phonegap app.
./meteor2cordova.coffee docs.meteor.com --classname docs.meteor.com --appname "Meteorjs documentation" --versioncode 5 --versionname 0.6.3.1
You first need to generate a key, e.g. like this:
keytool -validity 9125 -sigalg MD5withRSA -keyalg RSA -keysize 1024 -genkey -v -alias YOURALIAS -keystore release-key.keystore
The rest of the steps can be handled by
signapk.sh, which looks for
.apk and turns it into
aligned-signed.apk, which is
ready to be be uploaded to http://play.google.com/apps/publish.
Unfortunately there doesn't seem to be a way to automate this last
step (May 2013).
Help / Consulting
Some example Android apps
- Meteor documentation
- Radio Meteor, internet radio player for Somafm and Radio Paradise
- Hitchwiki, offline version of Hitchwiki, based on mediawikixml2meteor2phonegap
Dependencies for Android
Cordova build/compile can fail on Ubuntu giving error on appt file:
Execute failed: java.io.IOException: Cannot run program "/home/myAccount/adt-bundle/sdk/build-tools/19.0.1/aapt"
You check the
aapt and it's there. The problem is actually that you are not having the right binary version of the the file (32/64)
Installing those dependencies usually fix the problem:
sudo apt-get install libc6:i386 libgcc1:i386 gcc-4.6-base:i386 libstdc++5:i386 libstdc++6:i386
You might also need:
sudo apt-get install lib32stdc++6 lib32bz2-1.0 lib32z1 lib32ncurses5