From bf0c447fec316920542948b08a8a5306173fb937 Mon Sep 17 00:00:00 2001 From: Sam Whited Date: Wed, 22 Oct 2014 15:49:48 -0400 Subject: Add proguard rules --- proguard-rules.txt | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 proguard-rules.txt (limited to 'proguard-rules.txt') diff --git a/proguard-rules.txt b/proguard-rules.txt new file mode 100644 index 00000000..ef4925e2 --- /dev/null +++ b/proguard-rules.txt @@ -0,0 +1,25 @@ +# Add project specific ProGuard rules here. +# By default, the flags in this file are appended to flags specified +# in /home/sam/android-sdk-linux/tools/proguard/proguard-android.txt +# You can edit the include path and order by changing the ProGuard +# include property in project.properties. +# +# For more details, see +# http://developer.android.com/guide/developing/tools/proguard.html + +# Add any project specific keep options here: + +# If your project uses WebView with JS, uncomment the following +# and specify the fully qualified class name to the JavaScript interface +# class: +#-keepclassmembers class fqcn.of.javascript.interface.for.webview { +# public *; +#} + +-keep class * extends java.util.ListResourceBundle { + protected Object[][] getContents(); +} + +-keepnames class * implements android.os.Parcelable { + public static final ** CREATOR; +} -- cgit v1.2.3 From 5f4b6e39bcf96435acb79dcf8c660b0819232544 Mon Sep 17 00:00:00 2001 From: Sam Whited Date: Wed, 22 Oct 2014 18:22:49 -0400 Subject: 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. --- proguard-rules.txt | 2 ++ 1 file changed, 2 insertions(+) (limited to '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(); } -- cgit v1.2.3