disable minify and proguard for now

This commit is contained in:
B. Petersen
2019-05-13 18:30:48 +02:00
parent c012bf7710
commit efc9919f1b
10 changed files with 11 additions and 78 deletions
+11 -14
View File
@@ -150,23 +150,20 @@ android {
buildTypes {
debug {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'),
'proguard-jackson.pro',
'proguard-appcompat-v7.pro',
'proguard-rounded-image-view.pro',
'proguard-glide.pro',
'proguard-shortcutbadger.pro',
'proguard-retrofit.pro',
'proguard-retrolambda.pro',
'proguard.cfg'
testProguardFiles 'proguard-automation.pro',
'proguard.cfg'
minifyEnabled false
applicationIdSuffix ".beta"
}
release {
minifyEnabled true
proguardFiles = buildTypes.debug.proguardFiles
// minification and proguard disabled for now.
//
// when enabled, it can cut down apk size about 6%,
// however this also has the potential to break things.
// so exceptions are needed and have to be maintained.
// (see git-history and https://github.com/deltachat/deltachat-android/issues/905 )
//
// nb: it is highly recommended to use the same settings in debug+release -
// otherwise problems might be noticed delayed only
minifyEnabled false
signingConfig signingConfigs.release
}
}
-13
View File
@@ -1,13 +0,0 @@
# https://code.google.com/p/android/issues/detail?id=78377
-keepnames class !android.support.v7.internal.view.menu.**, ** { *; }
-keep public class android.support.v7.widget.** { *; }
-keep public class android.support.v7.internal.widget.** { *; }
-keep public class * extends android.support.v4.view.ActionProvider {
public <init>(android.content.Context);
}
-keepattributes *Annotation*
-keep public class * extends android.support.design.widget.CoordinatorLayout.Behavior { *; }
-keep public class * extends android.support.design.widget.ViewOffsetBehavior { *; }
-13
View File
@@ -1,13 +0,0 @@
-keepattributes Exceptions
-dontskipnonpubliclibraryclassmembers
-dontwarn android.test.**
-dontwarn com.android.support.test.**
-dontwarn sun.reflect.**
-dontwarn sun.misc.**
-dontwarn org.assertj.**
-dontwarn org.hamcrest.**
-dontwarn org.mockito.**
-dontwarn com.squareup.**
-dontobfuscate
-6
View File
@@ -1,6 +0,0 @@
-keep public class * implements com.bumptech.glide.module.GlideModule
-keep public class * extends com.bumptech.glide.AppGlideModule
-keep public enum com.bumptech.glide.load.resource.bitmap.ImageHeaderParser$** {
**[] $VALUES;
public *;
}
-12
View File
@@ -1,12 +0,0 @@
# Proguard configuration for Jackson 2.x (fasterxml package instead of codehaus package)
-keepattributes *Annotation*,EnclosingMethod,Signature
-keepnames class com.fasterxml.jackson.** {
*;
}
-keepnames interface com.fasterxml.jackson.** {
*;
}
-dontwarn com.fasterxml.jackson.databind.**
-keep class org.codehaus.** { *; }
-4
View File
@@ -1,4 +0,0 @@
-dontwarn retrofit.**
-keep class retrofit.** { *; }
-keepattributes Signature
-keepattributes Exceptions
-2
View File
@@ -1,2 +0,0 @@
-dontwarn java.lang.invoke.*
-dontwarn **$$Lambda$*
-1
View File
@@ -1 +0,0 @@
-dontwarn com.squareup.picasso.**
-1
View File
@@ -1 +0,0 @@
-keep class me.leolin.shortcutbadger.** {*;}
-12
View File
@@ -1,12 +0,0 @@
-dontoptimize
-keepattributes SourceFile,LineNumberTable
-keep class org.whispersystems.** { *; }
-keep class org.thoughtcrime.securesms.** { *; }
-keepclassmembers class ** {
public void onEvent*(**);
}
-keepclassmembers enum * {
public static **[] values();
public static ** valueOf(java.lang.String);
}