Skip to content

Commit

Permalink
sync up Retrofit2 proguard rules
Browse files Browse the repository at this point in the history
  • Loading branch information
frett committed Sep 15, 2023
1 parent c940428 commit ed110f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/proguard-rules-retrofit2.pro
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
### Rules not in a release yet
### copied from https://github.com/square/retrofit/blob/dcc890bc1e13895309c83bb7ca448cc885c41d6b/retrofit/src/main/resources/META-INF/proguard/retrofit2.pro
### copied from https://github.com/square/retrofit/blob/ef8d867ffb34b419355a323e11ba89db1904f8c2/retrofit/src/main/resources/META-INF/proguard/retrofit2.pro

# Retrofit does reflection on generic parameters. InnerClasses is required to use Signature and
# EnclosingMethod is required to use InnerClasses.
Expand Down Expand Up @@ -47,5 +47,5 @@
-if interface * { @retrofit2.http.* public *** *(...); }
-keep,allowoptimization,allowshrinking,allowobfuscation class <3>

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

0 comments on commit ed110f0

Please sign in to comment.