Cordova : 7.0.0 - Date : July 2017
NPM commands
Uses node to install the cordova program on your computer globally.
npm install -g cordova
Init project
Uses cordova to create your project in a folder called demo with the namespace ca.edumedia.m.griffis
cordova create demo com.sii.fr.mydemo Demo
Add platform to your project
cordova platform add android
cordova platform add ios
Add plugin
cordova plugin add cordova-plugin-device
Build application
cordova build android
cordova build ios
Start application with emulator
cordova emulate android --target=myAdvName
Run application
You can run application on added platform
cordova run android
cordova run ios
cordova run browser
Android commands
- List availables targets
android list targets
- List availables virtual devices
android list avds
- Create virtual devices
android create avd -n bob -t android-19
ADB commands
- List connected physical device
adb devices
- Install specific apk
adb install demo.apk
- Reinstall specific apk
adb install -r demo.apk
- Remove specific package
adb uninstall name-of-app-package
- List installed packages
adb shell pm list packages
Emulator commands
Launch android emulator with specific avd target
emulator -avd bob
Config.xml
Standard operation on config.xml