GrowApp cordova/web-client creates time-lapse animations of vegetation
using material design lite (mdl)
- git
- node with npm
- android studio
- java jdk
- cordova (npm install cordova)
# get source from github
git clone https://github.com/anneb/growapp-mdl
cd growapp-mdl/www
# add dependencies
npm install
cd growapp-mdl
#install cordova dependencies as defined in config.xml
cordova prepare
Device
Connect your device to USB
Android device emulator preparation
- start->Android Studio-> new empty project
- menu tools-> Android -> AVD manager->create virtual device
cd growapp-mdl
cordova run --emulator
cd growapp-mdl
cordova run --device
For some reason, cordova 6.4.0 copies the android app icons to the wrong directory.
After the first build, cordova created new directories:
res/mipmap-*
Manually copy or move:
res/mipmap-*
to:
platforms/android/res/
and rebuild the app.
After adding platform ios, the ios launch screen images have to be copied to the ios project manually:
cp res/screen/ios/* platforms/ios/GrowApp/Images.xcassets//LaunchImage.launchimage/
see the growapp wiki