Skip to content

Commit

Permalink
update proguard rules
Browse files Browse the repository at this point in the history
  • Loading branch information
karan31q committed Mar 15, 2024
1 parent d5b06d0 commit 06c8afb
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion app/proguard-rules.pro
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,17 @@

# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile
#-renamesourcefileattribute SourceFile

# https://github.com/square/retrofit/issues/3751
# 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

# R8 full mode strips generic signatures from return types if not kept.
-if interface * { @retrofit2.http.* public *** *(...); }
-keep,allowoptimization,allowshrinking,allowobfuscation class <3>

# With R8 full mode generic signatures are stripped for classes that are not kept.
-keep,allowobfuscation,allowshrinking class retrofit2.Response

0 comments on commit 06c8afb

Please sign in to comment.