From 494c132c847c5a7b9f37c85af853a3c6ef276a60 Mon Sep 17 00:00:00 2001 From: sadorowo Date: Fri, 14 Jun 2024 23:17:46 +0200 Subject: [PATCH] add new Retrofit2 rules --- app/proguard-rules.pro | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) 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 ;