aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSam Whited <sam@samwhited.com>2014-10-22 18:22:49 -0400
committerSam Whited <sam@samwhited.com>2014-10-22 18:22:49 -0400
commit5f4b6e39bcf96435acb79dcf8c660b0819232544 (patch)
treec0a36f5390100aa3edf520a6abf71f79d2dcdf62
parent1f49e99c460be1a4987bbb3b77753c667410294c (diff)
Use proguard on release builds
We don't need obfuscation (it's an open source project), but proguard wil shrink the apk by stripping out unused code.
-rw-r--r--build.gradle2
-rw-r--r--proguard-rules.txt2
2 files changed, 3 insertions, 1 deletions
diff --git a/build.gradle b/build.gradle
index 95e10738..6a91ef52 100644
--- a/build.gradle
+++ b/build.gradle
@@ -50,7 +50,7 @@ android {
}
buildTypes {
release {
- runProguard false
+ runProguard true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
}
diff --git a/proguard-rules.txt b/proguard-rules.txt
index ef4925e2..f39d07c5 100644
--- a/proguard-rules.txt
+++ b/proguard-rules.txt
@@ -16,6 +16,8 @@
# public *;
#}
+-dontwarn javax.naming.**
+
-keep class * extends java.util.ListResourceBundle {
protected Object[][] getContents();
}