diff --git a/app/proguard-rules.pro b/app/proguard-rules.pro index cf24e514..a1173227 100644 --- a/app/proguard-rules.pro +++ b/app/proguard-rules.pro @@ -55,14 +55,22 @@ #-printmapping mapping.txt -keep class okhttp3.** { *; } --keep class retrofit.** { *; } -keep class com.google.android.material.tabs.** {*;} # ServiceLoader support - -keepnames class kotlinx.coroutines.internal.MainDispatcherFactory {} +-keepnames class kotlinx.coroutines.internal.MainDispatcherFactory {} -keepnames class kotlinx.coroutines.CoroutineExceptionHandler {} +# Exclude Retrofit2 +-keepattributes Signature, InnerClasses, EnclosingMethod +-keepclassmembers,allowshrinking,allowobfuscation interface * { + @retrofit2.http.* ; +} +-dontwarn org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement +-dontwarn javax.annotation.** +-dontwarn kotlin.Unit + # Most of volatile fields are updated with AFU and should not be mangled -keepclassmembernames class kotlinx.** { volatile ;