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.
This commit is contained in:
Sam Whited 2014-10-22 18:22:49 -04:00
parent 1f49e99c46
commit 5f4b6e39bc
2 changed files with 3 additions and 1 deletions

View file

@ -50,7 +50,7 @@ android {
} }
buildTypes { buildTypes {
release { release {
runProguard false runProguard true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt' proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
} }
} }

View file

@ -16,6 +16,8 @@
# public *; # public *;
#} #}
-dontwarn javax.naming.**
-keep class * extends java.util.ListResourceBundle { -keep class * extends java.util.ListResourceBundle {
protected Object[][] getContents(); protected Object[][] getContents();
} }