Simple cordova project using cordova plugins, ios and android platforms.
It does the basical job from base branch which is the basis branch: just a cordova hello world project with simple javascript and css, and a cordova camera plugin. This branch is merged with the followings:
- basis/es6-babel-webpack branch :
- Adds ES6 environment to develop javascript application from src folder. Based on this Medium article but not using "autoroute"
- basis/customize-platforms branch :
- Use merges to Customize Each Platform as explained in this documentation section
- basis/configuration-customization branch :
- Adds some configuration parameters following [this documentation about config.xml] (https://cordova.apache.org/docs/en/latest/config_ref/index.html)
- basis/crosswalk branch :
- Just add Cordova Plugin Crosswalk Webview
- You'll need Node installed (or
brew install node
with homebrew) and NPM. - Wanna develop for android platforms? Please read this installation documentation
- Wanna develop for ios platforms? Please read this installation documentation
- Please be sure Cordova is installed before (
npm install -g cordova
) - Be sure that Webpack is globally installed on your system (
npm install -g webpack
)
git clone [email protected]:proustibat/cordova-hello-world.git
cd cordova-hello-world
npm install
Note that npm install
simply runs cordova prepare
command
- On your browser: run
npm start
Note that the command above runs npm run compile:js && cordova serve -l
Then visit http://localhost:8000/
- On android simulator:
npm run compile:js
cordova emulate android
- On android device (with a usb connected device)
npm run compile:js
cordova run android --device
- On ios simulator
npm run compile:js
cordova emulate ios
- On ios device (with a usb connected device)
npm run compile:js
cordova run ios --device
npm run compile:js
npm run build
Note that npm run build
command runs cordova build android && cordova build ios
- Launch Android SDK Manager: run
android sdk
- Launch Android Virtual Device Manager: run
android avd
- Listing available android virtual devices: run
cordova run android --list
- Listing available iOS virtual devices: run
cordova run ios --list
- While running an app on simulators or devices, you can visit chrome://inspect/#devices to debug your android device> For ios device, open safari, find your device in development tab.