I just start working on a cordova + android SDK, puppet provisionned box. First attempt is here https://github.com/lennycartier/cordova-vagrantbox
Need to work on android headless updating, more reliable resources downloading and clean dependencies in the .pp file.
On https://github.com/lennycartier/nodejs-vagrantbox you will find a dead simple nodejs vagrant box with the following features :
- ubuntu trusty 64 base box
- other installed packages
- test.js file to easily try nodejs
- the guest listens on 127.0.0.1:8080 the host on 127.0.0.1:1337
How to use :
- install latest vagrant (http://www.vagrantup.com)
- install latest virtualbox (http://www.virtualbox.org)
- clone this repo and cd into it
- do a vagrant up then vagrant provision
- ssh into the box with vagrant ssh
Note : nodejs version is the pretty outdated one provided with ubuntu 14.04; but it is fine to start playing with node. I will eventually update the github repo to use NodeSource repo (formerly Chris Lea Launchpad PPA)
You should add cordova-plugin-console to your project by something like :
cordova plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-console.git
The Cordova full list of plugins is here : https://git-wip-us.apache.org/repos/asf?s=cordova-plugin
At least with OSX and running the iOS simulator, you should see messages in the Console tool.
When installing the cordova or phonegap "framework", "buildsystem" or whatever you call it to build Android web apps, the check_reqs script located in ~/.cordova/lib/android/cordova/3.4.0/bin/ keeps asking for unresolved dependencies.
First you have to fire "android" at the command prompt and install updates.
Then you have to install API 19 level packages.
The reason is simply that you are coding for Android Kit Kat wich is version 4.4 and API level 19.
The whole API level list (and more interesting info) is located here : http://developer.android.com/guide/topics/manifest/uses-sdk-element.html