Navigation Menu

Skip to content

Commit

Permalink
Okio proguard rules link
Browse files Browse the repository at this point in the history
  • Loading branch information
Jawnnypoo committed Dec 9, 2016
1 parent 766a9ea commit 39394b3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion website/index.html
Expand Up @@ -171,7 +171,7 @@ <h4>Gradle</h4>
<p>Retrofit requires at minimum Java 7 or Android 2.3.</p>

<h4>ProGuard</h4>
<p>If you are using Proguard in your project add the following lines to your configuration:</p>
<p>If you are using ProGuard in your project add the following lines to your configuration:</p>
<pre class="prettyprint">
# Platform calls Class.forName on types which do not exist on Android to determine platform.
-dontnote retrofit2.Platform
Expand All @@ -182,6 +182,7 @@ <h4>ProGuard</h4>
# Retain declared checked exceptions for use by a Proxy instance.
-keepattributes Exceptions
</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>

<section id="contributing">
Expand Down

0 comments on commit 39394b3

Please sign in to comment.