mirror of
https://git.mihon.tech/mihonapp/mihon
synced 2024-11-25 06:36:00 +03:00
99 lines
No EOL
2.8 KiB
Prolog
99 lines
No EOL
2.8 KiB
Prolog
-dontobfuscate
|
|
|
|
-keep class eu.kanade.tachiyomi.**
|
|
-keep class eu.kanade.tachiyomi.source.model.** { *; }
|
|
|
|
-keep class com.hippo.image.** { *; }
|
|
-keep interface com.hippo.image.** { *; }
|
|
|
|
# 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.**
|
|
|
|
# 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 2.X
|
|
## https://square.github.io/retrofit/ ##
|
|
|
|
-dontwarn retrofit2.**
|
|
-keep class retrofit2.** { *; }
|
|
-keepattributes Signature
|
|
-keepattributes Exceptions
|
|
|
|
-keepclasseswithmembers class * {
|
|
@retrofit2.http.* <methods>;
|
|
}
|
|
|
|
# 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);
|
|
}
|
|
|
|
# ReactiveNetwork
|
|
-dontwarn com.github.pwittchen.reactivenetwork.**
|
|
|
|
## GSON ##
|
|
|
|
# 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*
|
|
|
|
# Gson specific classes
|
|
-keep class sun.misc.Unsafe { *; }
|
|
#-keep class com.google.gson.stream.** { *; }
|
|
|
|
# Application classes that will be serialized/deserialized over Gson
|
|
-keep class com.google.gson.examples.android.model.** { *; }
|
|
|
|
# Prevent proguard from stripping interface information from TypeAdapterFactory,
|
|
# JsonSerializer, JsonDeserializer instances (so they can be used in @JsonAdapter)
|
|
-keep class * implements com.google.gson.TypeAdapterFactory
|
|
-keep class * implements com.google.gson.JsonSerializer
|
|
-keep class * implements com.google.gson.JsonDeserializer
|
|
|
|
# SnakeYaml
|
|
-keep class org.yaml.snakeyaml.** { public protected private *; }
|
|
-keep class org.yaml.snakeyaml.** { public protected private *; }
|
|
-dontwarn org.yaml.snakeyaml.**
|
|
|
|
# Duktape
|
|
-keep class com.squareup.duktape.** { *; } |