aboutsummaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2015-04-28 18:25:44 -0700
committerScott Jackson <daneren2005@gmail.com>2015-04-28 18:25:44 -0700
commit107c8cbd1410000e10c27e72a3266598a44a2582 (patch)
tree86a095bb63190a282c2ee1bf338186d4e1d23f1a /app
parent4c1216d9b5365c93752fe6ab6a46a1b7d3261d0f (diff)
downloaddsub-107c8cbd1410000e10c27e72a3266598a44a2582.tar.gz
dsub-107c8cbd1410000e10c27e72a3266598a44a2582.tar.bz2
dsub-107c8cbd1410000e10c27e72a3266598a44a2582.zip
Update release configuration
Diffstat (limited to 'app')
-rw-r--r--app/build.gradle8
-rw-r--r--app/proguard.cfg61
2 files changed, 67 insertions, 2 deletions
diff --git a/app/build.gradle b/app/build.gradle
index cb3119bd..e74cfa3e 100644
--- a/app/build.gradle
+++ b/app/build.gradle
@@ -11,14 +11,18 @@ android {
}
buildTypes {
release {
- minifyEnabled false
- proguardFiles getDefaultProguardFile('proguard.cfg')
+ minifyEnabled true
+ proguardFiles 'proguard.cfg'
}
}
packagingOptions {
exclude 'META-INF/beans.xml'
}
+
+ lintOptions {
+ checkReleaseBuilds false
+ }
}
dependencies {
diff --git a/app/proguard.cfg b/app/proguard.cfg
new file mode 100644
index 00000000..8e1a0a0a
--- /dev/null
+++ b/app/proguard.cfg
@@ -0,0 +1,61 @@
+-dontobfuscate
+-optimizationpasses 5
+-dontusemixedcaseclassnames
+-dontskipnonpubliclibraryclasses
+-dontpreverify
+-verbose
+-optimizations !code/simplification/arithmetic,!field/*,!class/merging/*,!code/allocation/variable
+
+-keep public class * extends android.app.Activity
+-keep public class * extends android.app.Application
+-keep public class * extends android.app.Service
+-keep public class * extends android.content.BroadcastReceiver
+-keep public class * extends android.content.ContentProvider
+-keep public class * extends android.app.backup.BackupAgentHelper
+-keep public class * extends android.preference.Preference
+
+# Kryo
+-keep,allowshrinking class java.beans.** { *; }
+-keep,allowshrinking class sun.reflect.** { *; }
+-dontwarn sun.reflect.**
+-dontwarn java.beans.**
+-keepclassmembers public class com.esotericsoftware.** { *; }
+
+-keepclasseswithmembernames class * {
+ native <methods>;
+}
+
+-keepclassmembers class * extends android.app.Activity {
+ public void *(android.view.View);
+}
+
+-keepclassmembers public class * extends android.view.View {
+ void set*(***);
+ *** get*();
+}
+
+-keepclassmembers enum * {
+ public static **[] values();
+ public static ** valueOf(java.lang.String);
+}
+
+-keep class * implements android.os.Parcelable {
+ public static final android.os.Parcelable$Creator *;
+}
+
+-keep class android.support.v7.app.MediaRouteButton { *; }
+
+-dontwarn android.support.**
+
+# DLNA/Cling
+-keep class org.fourthline.cling.** { *; }
+-keep interface org.fourthline.cling.** { *; }
+-dontwarn javax.**
+-dontwarn org.objectweb.**
+-dontwarn org.slf4j.**
+-dontwarn org.mortbay.**
+-dontwarn org.fourthline.**
+-dontwarn org.seamless.**
+-dontwarn org.eclipse.**
+-dontwarn java.**
+-keepattributes *Annotation*, InnerClasses \ No newline at end of file