#!/bin/bash

echo "Removing Android platform"
ionic platform remove android
echo "Reinstalling Android platform"
ionic platform add android
echo "Build with Gulp"
gulp build
echo "Remove old APK file"
rm platforms/android/build/outputs/apk/android-debug.apk
echo "Run on Android device"
ionic run android
