Skip to content

Commit

Permalink
Merge pull request #3598 from jzbrooks/keep-response-sig
Browse files Browse the repository at this point in the history
Keep signature for Response<T>
  • Loading branch information
JakeWharton authored Aug 7, 2021
2 parents b8f49e5 + 007a706 commit caa69a6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion retrofit/src/main/resources/META-INF/proguard/retrofit2.pro
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,9 @@
-if interface * { @retrofit2.http.* <methods>; }
-keep,allowobfuscation interface <1>

# Keep generic signature of Call (R8 full mode strips signatures from non-kept items).
# 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
Expand Down

0 comments on commit caa69a6

Please sign in to comment.