forked from github/szkolny
add new Retrofit2 rules
This commit is contained in:
parent
11d3502be6
commit
494c132c84
10
app/proguard-rules.pro
vendored
10
app/proguard-rules.pro
vendored
@ -55,7 +55,6 @@
|
||||
#-printmapping mapping.txt
|
||||
|
||||
-keep class okhttp3.** { *; }
|
||||
-keep class retrofit.** { *; }
|
||||
|
||||
-keep class com.google.android.material.tabs.** {*;}
|
||||
|
||||
@ -63,6 +62,15 @@
|
||||
-keepnames class kotlinx.coroutines.internal.MainDispatcherFactory {}
|
||||
-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
|
||||
-keepclassmembernames class kotlinx.** {
|
||||
volatile <fields>;
|
||||
|
Loading…
Reference in New Issue
Block a user