add new Retrofit2 rules

This commit is contained in:
Franek 2024-06-14 23:17:46 +02:00
parent 11d3502be6
commit 494c132c84
No known key found for this signature in database
GPG Key ID: 0329F871B2079351

View File

@ -55,14 +55,22 @@
#-printmapping mapping.txt #-printmapping mapping.txt
-keep class okhttp3.** { *; } -keep class okhttp3.** { *; }
-keep class retrofit.** { *; }
-keep class com.google.android.material.tabs.** {*;} -keep class com.google.android.material.tabs.** {*;}
# ServiceLoader support # ServiceLoader support
-keepnames class kotlinx.coroutines.internal.MainDispatcherFactory {} -keepnames class kotlinx.coroutines.internal.MainDispatcherFactory {}
-keepnames class kotlinx.coroutines.CoroutineExceptionHandler {} -keepnames class kotlinx.coroutines.CoroutineExceptionHandler {}
# Exclude Retrofit2
-keepattributes Signature, InnerClasses, EnclosingMethod
-keepclassmembers,allowshrinking,allowobfuscation interface * {
@retrofit2.http.* <methods>;
}
-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 # Most of volatile fields are updated with AFU and should not be mangled
-keepclassmembernames class kotlinx.** { -keepclassmembernames class kotlinx.** {
volatile <fields>; volatile <fields>;