Skip to content

Commit

Permalink
Retain service method parameters when ProGuard optimization is enabled.
Browse files Browse the repository at this point in the history
  • Loading branch information
technoir42 committed Jan 18, 2018
1 parent 6357c27 commit 4c4d7f8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions website/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,10 @@ <h4>ProGuard</h4>
-keepattributes Signature
# Retain declared checked exceptions for use by a Proxy instance.
-keepattributes Exceptions
# Retain service method parameters.
-keepclassmembernames,allowobfuscation interface * {
@retrofit2.http.* <methods>;
}
</pre>
<p>Retrofit uses <a href="https://github.com/square/okio">Okio</a> under the hood, so you may want to look at its <a href="https://github.com/square/okio#proguard">ProGuard rules</a> as well.</p>
</section>
Expand Down

0 comments on commit 4c4d7f8

Please sign in to comment.