changeset 15:357bbbbcf201

set debuggable flag depending on build style
author Carl Byington <carl@five-ten-sg.com>
date Sun, 29 Jun 2014 12:43:35 -0700
parents 0ccc5139199c
children a481d8fb5571
files Makefile
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/Makefile	Tue Jun 24 08:06:00 2014 -0700
+++ b/Makefile	Sun Jun 29 12:43:35 2014 -0700
@@ -4,12 +4,18 @@
 style=release
 dest=/run/user/1000/gvfs/mtp*/*torage/Download
 apk='bin/510ConnectbotMonitor-$(style).apk'
+ifeq ($(style),release)
+    debuggable=false
+else
+	debuggable=true
+endif
 
 all:
 	hg pull; hg update
 	make builder
 
 builder:
+	sed -i -e 's/android:debuggable=".*"/android:debuggable="$(debuggable)"/g' AndroidManifest.xml
 	rm -rf gen bin
 	android update project -p . -t android-16
 	ant $(style)