Jorge del Casar (a.k.a. @JorgeCasar)
19 Jul 2013
02 Oct 2013
22 Nov 2013
06 Dec 2013
Install or update Cordova and report issues
Release date: 20 Dec 2013
sudo npm install -g cordova
cordova create <PATH> [ID] [NAME]
Parameters:
cordova platform(s) [{add|remove|rm} <PLATFORM>]
Parameters:
Without parameters: list all installed and available platforms
Check Platform Support and Platform Guides Android before add a platform
cordova plugin(s) [{add|remove|rm} <PATH|URI>]
Parameters:
Without parameters: list all currently installed plugins
You can find a Apache Cordova Plugin or Create your own one
cordova prepare [<PLATFORM>]
Copies files for specified platforms, or all platforms, so that the project is ready to build in each SDK
cordova compile [<PLATFORM>]
Builds the app for specified platforms, or all platforms
cordova build [<PLATFORM>]
cordova emulate [<PLATFORM>]
Deploys app in specified (or all) platforms' emulator, opening emulator if necessary
cordova run [<PLATFORM>]
Deploys app on specified (or all) platform devices, which must be properly connected and configured in each SDK
[adt-path]/sdk/tools
[adt-path]/sdk/platform-tools
You can lern how reading the plugin development guide and read how to implement the native code in Android
You can add a plugin to a specific platform using plugman
directly
plugman --platform [PLATFORM] --project [PATH] --plugin [URL]
If you don't have plugman you can install globally:
npm install -g plugman
All you put inside ./merges/[platform]
will overide the files placed in ./www/
in the specific platform