Fix proguard rules
This commit is contained in:
parent
fa8d0946e9
commit
a6a9b13545
1 changed files with 8 additions and 47 deletions
55
app/proguard-rules.pro
vendored
55
app/proguard-rules.pro
vendored
|
@ -2,9 +2,6 @@
|
||||||
|
|
||||||
-keep class eu.kanade.tachiyomi.injection.** { *; }
|
-keep class eu.kanade.tachiyomi.injection.** { *; }
|
||||||
|
|
||||||
# Retrolambda
|
|
||||||
-dontwarn java.lang.invoke.*
|
|
||||||
|
|
||||||
# OkHttp
|
# OkHttp
|
||||||
-keepattributes Signature
|
-keepattributes Signature
|
||||||
-keepattributes *Annotation*
|
-keepattributes *Annotation*
|
||||||
|
@ -19,25 +16,6 @@
|
||||||
-dontwarn org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement
|
-dontwarn org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement
|
||||||
-dontwarn okio.**
|
-dontwarn okio.**
|
||||||
|
|
||||||
# ButterKnife 7
|
|
||||||
-keep class butterknife.** { *; }
|
|
||||||
-dontwarn butterknife.internal.**
|
|
||||||
-keep class **$$ViewBinder { *; }
|
|
||||||
|
|
||||||
-keepclasseswithmembernames class * {
|
|
||||||
@butterknife.* <fields>;
|
|
||||||
}
|
|
||||||
|
|
||||||
-keepclasseswithmembernames class * {
|
|
||||||
@butterknife.* <methods>;
|
|
||||||
}
|
|
||||||
|
|
||||||
#Easy-Adapter v1.5.0
|
|
||||||
-keepattributes *Annotation*
|
|
||||||
-keepclassmembers class * extends uk.co.ribot.easyadapter.ItemViewHolder {
|
|
||||||
public <init>(...);
|
|
||||||
}
|
|
||||||
|
|
||||||
# Glide specific rules #
|
# Glide specific rules #
|
||||||
# https://github.com/bumptech/glide
|
# https://github.com/bumptech/glide
|
||||||
-keep public class * implements com.bumptech.glide.module.GlideModule
|
-keep public class * implements com.bumptech.glide.module.GlideModule
|
||||||
|
@ -47,7 +25,6 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
# RxJava 1.1.0
|
# RxJava 1.1.0
|
||||||
|
|
||||||
-dontwarn sun.misc.**
|
-dontwarn sun.misc.**
|
||||||
|
|
||||||
-keepclassmembers class rx.internal.util.unsafe.*ArrayQueue*Field* {
|
-keepclassmembers class rx.internal.util.unsafe.*ArrayQueue*Field* {
|
||||||
|
@ -63,26 +40,17 @@
|
||||||
rx.internal.util.atomic.LinkedQueueNode consumerNode;
|
rx.internal.util.atomic.LinkedQueueNode consumerNode;
|
||||||
}
|
}
|
||||||
|
|
||||||
# Retrofit 1.X
|
# Retrofit 2.X
|
||||||
|
## https://square.github.io/retrofit/ ##
|
||||||
|
|
||||||
-keep class com.squareup.okhttp.** { *; }
|
-dontwarn retrofit2.**
|
||||||
-keep class retrofit.** { *; }
|
-keep class retrofit2.** { *; }
|
||||||
-keep interface com.squareup.okhttp.** { *; }
|
-keepattributes Signature
|
||||||
|
|
||||||
-dontwarn com.squareup.okhttp.**
|
|
||||||
-dontwarn okio.**
|
|
||||||
-dontwarn retrofit.**
|
|
||||||
-dontwarn rx.**
|
|
||||||
|
|
||||||
-keepclasseswithmembers class * {
|
|
||||||
@retrofit.http.* <methods>;
|
|
||||||
}
|
|
||||||
|
|
||||||
# If in your rest service interface you use methods with Callback argument.
|
|
||||||
-keepattributes Exceptions
|
-keepattributes Exceptions
|
||||||
|
|
||||||
# If your rest service methods throw custom exceptions, because you've defined an ErrorHandler.
|
-keepclasseswithmembers class * {
|
||||||
-keepattributes Signature
|
@retrofit2.http.* <methods>;
|
||||||
|
}
|
||||||
|
|
||||||
# AppCombat
|
# AppCombat
|
||||||
-keep public class android.support.v7.widget.** { *; }
|
-keep public class android.support.v7.widget.** { *; }
|
||||||
|
@ -93,13 +61,6 @@
|
||||||
public <init>(android.content.Context);
|
public <init>(android.content.Context);
|
||||||
}
|
}
|
||||||
|
|
||||||
# Icepick
|
|
||||||
-dontwarn icepick.**
|
|
||||||
-keep class **$$Icepick { *; }
|
|
||||||
-keepclasseswithmembernames class * {
|
|
||||||
@icepick.* <fields>;
|
|
||||||
}
|
|
||||||
|
|
||||||
## GSON 2.2.4 specific rules ##
|
## GSON 2.2.4 specific rules ##
|
||||||
|
|
||||||
# Gson uses generic type information stored in a class file when working with fields. Proguard
|
# Gson uses generic type information stored in a class file when working with fields. Proguard
|
||||||
|
|
Reference in a new issue