[Android] Allow to run the build on the device with 'run' argument
Jean-Baptiste Kempf
git at videolan.org
Fri Feb 6 17:27:56 CET 2015
vlc-ports/android | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Fri Feb 6 17:26:58 2015 +0100| [8d8d6434c3cfa9b2634a5f02f7065a90d9f79af0] | committer: Jean-Baptiste Kempf
Allow to run the build on the device with 'run' argument
> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=8d8d6434c3cfa9b2634a5f02f7065a90d9f79af0
---
compile-simple.sh | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
diff --git a/compile-simple.sh b/compile-simple.sh
index 45b725f..ef954f5 100755
--- a/compile-simple.sh
+++ b/compile-simple.sh
@@ -34,6 +34,9 @@ while [ $# -gt 0 ]; do
PASSWORD_KEYSTORE=$2
shift
;;
+ run)
+ RUN=1
+ ;;
esac
shift
done
@@ -153,3 +156,18 @@ if [ "$RELEASE" = 1 ]; then
else
./gradlew assembleVanillaDebug
fi
+
+#######
+# RUN #
+#######
+if [ "$RUN" = 1 ]; then
+ export PATH=${ANDROID_SDK}/platform-tools/:$PATH
+ adb wait-for-device
+ adb uninstall org.videolan.vlc
+ if [ "$RELEASE" = 1 ]; then
+ adb install -r vlc-android/build/outputs/apk/vlc-android-vanilla-release.apk
+ else
+ adb install -r vlc-android/build/outputs/apk/vlc-android-vanilla-debug.apk
+ fi
+ adb shell am start -n org.videolan.vlc/org.videolan.vlc.gui.MainActivity
+fi
More information about the Android
mailing list