![]() | Androidアプリ開発のためのKotlin実践プログラミング 新品価格 |

RetrofitでPostリクエストをしてみた
の続編
最後はproguardの設定方法
以下で動いた
annotationでエラー吐いてたのと
リフレクションみたいな実装になってると思うので
Retorfitのモデルクラスタも対象から外すの忘れないように
・proguardの設定
#retrofit
-dontwarn javax.annotation.**
-dontwarn okio.**
# Platform calls Class.forName on types which do not exist on Android to determine platform.
-dontnote retrofit2.Platform
# Platform used when running on Java 8 VMs. Will not be used at runtime.
-dontwarn retrofit2.Platform$Java8
# Retain generic type information for use by reflection by converters and adapters.
-keepattributes Signature
# Retain declared checked exceptions for use by a Proxy instance.
-keepattributes Exceptions
-keep public class モデルクラス