Skip to content

Commit

Permalink
Add proguard rules to keep inherited services
Browse files Browse the repository at this point in the history
  • Loading branch information
Goooler authored Nov 10, 2022
1 parent 5180f48 commit 6b6984e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions retrofit/src/main/resources/META-INF/proguard/retrofit2.pro
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@
-if interface * { @retrofit2.http.* <methods>; }
-keep,allowobfuscation interface <1>

# Keep inherited services.
-if interface * { @retrofit2.http.* <methods>; }
-keep,allowobfuscation interface * extends <1>

# 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
Expand Down

0 comments on commit 6b6984e

Please sign in to comment.