cleanup proguard rules (#1819)
This commit is contained in:
parent
df5490b5b9
commit
ce779bcdba
1 changed files with 6 additions and 40 deletions
40
app/proguard-rules.pro
vendored
40
app/proguard-rules.pro
vendored
|
@ -30,43 +30,19 @@
|
||||||
public static ** valueOf(java.lang.String);
|
public static ** valueOf(java.lang.String);
|
||||||
}
|
}
|
||||||
-keepclassmembers class * implements android.os.Parcelable {
|
-keepclassmembers class * implements android.os.Parcelable {
|
||||||
public static final android.os.Parcelable$Creator CREATOR;
|
public static final ** CREATOR;
|
||||||
}
|
|
||||||
-keepclassmembers class **.R$* {
|
|
||||||
public static <fields>;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# TUSKY SPECIFIC OPTIONS
|
# TUSKY SPECIFIC OPTIONS
|
||||||
|
|
||||||
## for okhttp
|
# keep members of our model classes, they are used in json de/serialization
|
||||||
-dontwarn javax.annotation.**
|
-keepclassmembers class com.keylesspalace.tusky.entity.* { *; }
|
||||||
-keepnames class okhttp3.internal.publicsuffix.PublicSuffixDatabase
|
|
||||||
-dontwarn org.codehaus.mojo.animal_sniffer.*
|
|
||||||
-dontwarn okhttp3.internal.platform.ConscryptPlatform
|
|
||||||
|
|
||||||
##for keep
|
|
||||||
-dontwarn android.arch.util.paging.CountedDataSource
|
|
||||||
-dontwarn android.arch.persistence.room.paging.LimitOffsetDataSource
|
|
||||||
|
|
||||||
## for retrofit
|
|
||||||
-dontwarn retrofit2.**
|
|
||||||
-keep class retrofit2.** { *; }
|
|
||||||
-keepattributes Signature
|
|
||||||
-keepattributes Exceptions
|
|
||||||
-keepattributes *Annotation*
|
|
||||||
|
|
||||||
-keepclasseswithmembers class * {
|
|
||||||
@retrofit2.http.* <methods>;
|
|
||||||
}
|
|
||||||
|
|
||||||
-keep class com.keylesspalace.tusky.entity.** { *; }
|
|
||||||
|
|
||||||
-keep public enum com.keylesspalace.tusky.entity.*$** {
|
-keep public enum com.keylesspalace.tusky.entity.*$** {
|
||||||
**[] $VALUES;
|
**[] $VALUES;
|
||||||
public *;
|
public *;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
# preserve line numbers for crash reporting
|
# preserve line numbers for crash reporting
|
||||||
-keepattributes SourceFile,LineNumberTable
|
-keepattributes SourceFile,LineNumberTable
|
||||||
-renamesourcefileattribute SourceFile
|
-renamesourcefileattribute SourceFile
|
||||||
|
@ -87,17 +63,7 @@
|
||||||
static void throwUninitializedPropertyAccessException(java.lang.String);
|
static void throwUninitializedPropertyAccessException(java.lang.String);
|
||||||
}
|
}
|
||||||
|
|
||||||
-dontwarn com.google.errorprone.annotations.*
|
|
||||||
|
|
||||||
# without this emoji font downloading fails with AbstractMethodError
|
# without this emoji font downloading fails with AbstractMethodError
|
||||||
-keep class * extends android.os.AsyncTask {
|
-keep class * extends android.os.AsyncTask {
|
||||||
public *;
|
public *;
|
||||||
}
|
}
|
||||||
|
|
||||||
# Glide
|
|
||||||
-keep public class * implements com.bumptech.glide.module.GlideModule
|
|
||||||
-keep public class * extends com.bumptech.glide.module.AppGlideModule
|
|
||||||
-keep public enum com.bumptech.glide.load.ImageHeaderParser$** {
|
|
||||||
**[] $VALUES;
|
|
||||||
public *;
|
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in a new issue