mirror of
https://github.com/Myzel394/NumberHub.git
synced 2025-06-19 08:45:27 +02:00
Fix proguard rules for retrofit
This commit is contained in:
parent
11f2d82b50
commit
4c727718b8
@ -1,5 +1,15 @@
|
|||||||
-repackageclasses
|
-repackageclasses
|
||||||
|
|
||||||
|
# https://github.com/square/retrofit/issues/3751#issuecomment-1192043644
|
||||||
|
# Keep generic signature of Call, Response (R8 full mode strips signatures from non-kept items).
|
||||||
|
-keep,allowobfuscation,allowshrinking interface retrofit2.Call
|
||||||
|
-keep,allowobfuscation,allowshrinking class retrofit2.Response
|
||||||
|
|
||||||
|
# With R8 full mode generic signatures are stripped for classes that are not
|
||||||
|
# kept. Suspend functions are wrapped in continuations where the type argument
|
||||||
|
# is used.
|
||||||
|
-keep,allowobfuscation,allowshrinking class kotlin.coroutines.Continuation
|
||||||
|
|
||||||
-keepclassmembers class ** {
|
-keepclassmembers class ** {
|
||||||
@com.squareup.moshi.FromJson *;
|
@com.squareup.moshi.FromJson *;
|
||||||
@com.squareup.moshi.ToJson *;
|
@com.squareup.moshi.ToJson *;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user