From 07a8fe47fb6e843be2f909967f12e8918c94cb1a Mon Sep 17 00:00:00 2001 From: Norwin Roosen Date: Mon, 29 Oct 2018 19:24:18 +0100 Subject: [PATCH] add android deploy scripts (working on linux) --- package.json | 2 ++ 1 file changed, 2 insertions(+) diff --git a/package.json b/package.json index d1aa933..0ed4acf 100644 --- a/package.json +++ b/package.json @@ -8,6 +8,8 @@ "start": "ionic-app-scripts serve", "clean": "ionic-app-scripts clean", "build": "ionic-app-scripts build", + "android:deploy": "ionic cordova build android; adb install -r platforms/android/app/build/outputs/apk/debug/app-debug.apk", + "android:start": "adb shell am force-stop io.ionic.starter; adb shell am start -n io.ionic.starter/io.ionic.starter.MainActivity; sleep 1; adb logcat | grep -F \"`adb shell ps | grep io.ionic.starter | cut -c15-18`\"", "lint": "ionic-app-scripts lint" }, "dependencies": {