forked from github/szkolny
add new Retrofit2 rules
This commit is contained in:
parent
11d3502be6
commit
494c132c84
12
app/proguard-rules.pro
vendored
12
app/proguard-rules.pro
vendored
@ -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>;
|
||||||
|
Loading…
Reference in New Issue
Block a user