mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-15 21:35:10 +01:00
173 lines
4.5 KiB
Prolog
173 lines
4.5 KiB
Prolog
-dontobfuscate
|
|
|
|
-keep class eu.kanade.tachiyomi.injection.** { *; }
|
|
|
|
# Retrolambda
|
|
-dontwarn java.lang.invoke.*
|
|
|
|
# OkHttp
|
|
-keepattributes Signature
|
|
-keepattributes *Annotation*
|
|
-keep class okhttp3.** { *; }
|
|
-keep interface okhttp3.** { *; }
|
|
-dontwarn okhttp3.**
|
|
-dontwarn okio.**
|
|
|
|
# Okio
|
|
-keep class sun.misc.Unsafe { *; }
|
|
-dontwarn java.nio.file.*
|
|
-dontwarn org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement
|
|
-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>(...);
|
|
}
|
|
|
|
## GreenRobot EventBus specific rules ##
|
|
# http://greenrobot.org/eventbus/documentation/proguard/
|
|
-keepattributes *Annotation*
|
|
-keepclassmembers class ** {
|
|
@org.greenrobot.eventbus.Subscribe <methods>;
|
|
}
|
|
-keep enum org.greenrobot.eventbus.ThreadMode { *; }
|
|
|
|
# Only required if you use AsyncExecutor
|
|
-keepclassmembers class * extends org.greenrobot.eventbus.util.ThrowableFailureEvent {
|
|
<init>(java.lang.Throwable);
|
|
}
|
|
|
|
# Glide specific rules #
|
|
# https://github.com/bumptech/glide
|
|
-keep public class * implements com.bumptech.glide.module.GlideModule
|
|
-keep public enum com.bumptech.glide.load.resource.bitmap.ImageHeaderParser$** {
|
|
**[] $VALUES;
|
|
public *;
|
|
}
|
|
|
|
# RxJava 1.1.0
|
|
|
|
-dontwarn sun.misc.**
|
|
|
|
-keepclassmembers class rx.internal.util.unsafe.*ArrayQueue*Field* {
|
|
long producerIndex;
|
|
long consumerIndex;
|
|
}
|
|
|
|
-keepclassmembers class rx.internal.util.unsafe.BaseLinkedQueueProducerNodeRef {
|
|
rx.internal.util.atomic.LinkedQueueNode producerNode;
|
|
}
|
|
|
|
-keepclassmembers class rx.internal.util.unsafe.BaseLinkedQueueConsumerNodeRef {
|
|
rx.internal.util.atomic.LinkedQueueNode consumerNode;
|
|
}
|
|
|
|
# Retrofit 1.X
|
|
|
|
-keep class com.squareup.okhttp.** { *; }
|
|
-keep class retrofit.** { *; }
|
|
-keep interface com.squareup.okhttp.** { *; }
|
|
|
|
-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
|
|
|
|
# If your rest service methods throw custom exceptions, because you've defined an ErrorHandler.
|
|
-keepattributes Signature
|
|
|
|
# AppCombat
|
|
-keep public class android.support.v7.widget.** { *; }
|
|
-keep public class android.support.v7.internal.widget.** { *; }
|
|
-keep public class android.support.v7.internal.view.menu.** { *; }
|
|
|
|
-keep public class * extends android.support.v4.view.ActionProvider {
|
|
public <init>(android.content.Context);
|
|
}
|
|
|
|
# Icepick
|
|
-dontwarn icepick.**
|
|
-keep class **$$Icepick { *; }
|
|
-keepclasseswithmembernames class * {
|
|
@icepick.* <fields>;
|
|
}
|
|
|
|
## GSON 2.2.4 specific rules ##
|
|
|
|
# Gson uses generic type information stored in a class file when working with fields. Proguard
|
|
# removes such information by default, so configure it to keep all of it.
|
|
-keepattributes Signature
|
|
|
|
# For using GSON @Expose annotation
|
|
-keepattributes *Annotation*
|
|
|
|
-keepattributes EnclosingMethod
|
|
|
|
# Gson specific classes
|
|
-keep class sun.misc.Unsafe { *; }
|
|
-keep class com.google.gson.stream.** { *; }
|
|
|
|
## ACRA 4.5.0 specific rules ##
|
|
|
|
# we need line numbers in our stack traces otherwise they are pretty useless
|
|
-renamesourcefileattribute SourceFile
|
|
-keepattributes SourceFile,LineNumberTable
|
|
|
|
# ACRA needs "annotations" so add this...
|
|
-keepattributes *Annotation*
|
|
|
|
# keep this class so that logging will show 'ACRA' and not a obfuscated name like 'a'.
|
|
# Note: if you are removing log messages elsewhere in this file then this isn't necessary
|
|
-keep class org.acra.ACRA {
|
|
*;
|
|
}
|
|
|
|
# keep this around for some enums that ACRA needs
|
|
-keep class org.acra.ReportingInteractionMode {
|
|
*;
|
|
}
|
|
|
|
-keepnames class org.acra.sender.HttpSender$** {
|
|
*;
|
|
}
|
|
|
|
-keepnames class org.acra.ReportField {
|
|
*;
|
|
}
|
|
|
|
# keep this otherwise it is removed by ProGuard
|
|
-keep public class org.acra.ErrorReporter {
|
|
public void addCustomData(java.lang.String,java.lang.String);
|
|
public void putCustomData(java.lang.String,java.lang.String);
|
|
public void removeCustomData(java.lang.String);
|
|
}
|
|
|
|
# keep this otherwise it is removed by ProGuard
|
|
-keep public class org.acra.ErrorReporter {
|
|
public void handleSilentException(java.lang.Throwable);
|
|
}
|
|
|
|
# Keep the support library
|
|
-keep class org.acra.** { *; }
|
|
-keep interface org.acra.** { *; } |