aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/compile_androidmetis.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/compile_androidmetis.sh')
-rwxr-xr-xscripts/compile_androidmetis.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/scripts/compile_androidmetis.sh b/scripts/compile_androidmetis.sh
new file mode 100755
index 00000000..2d80653c
--- /dev/null
+++ b/scripts/compile_androidmetis.sh
@@ -0,0 +1,16 @@
+#!/bin/bash
+
+cd ccnxandroidmetis
+if [ ! -f local.properties ]; then
+ echo sdk.dir=${SDK} > local.properties
+ echo ndk.dir=${NDK} >> local.properties
+fi
+
+if [ "$1" == "DEBUG" ]; then
+ ./gradlew assembleDebug
+else
+ ./gradlew assembleRelease
+fi
+
+echo "Apks are inside ccnxandroidmetis/MetisControl/build/outputs/apk/"
+cd .. \ No newline at end of file