未验证 提交 ce6030f2 编写于 作者: J Jake Wharton 提交者: GitHub

Merge pull request #2613 from technoir3/retain-service-params

Retain service method parameters when ProGuard optimization is enabled.
......@@ -184,6 +184,10 @@ compile 'com.squareup.retrofit2:retrofit:<span class="version pln"><em>(insert l
-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>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册