OkHttpを使ったときのプロガードの設定
OkHttp-3.0.1
-dontwarn okio.**
-dontwarn com.squareup.okhttp.**
-keep class com.squareup.okhttp.** { ; }
-keep interface com.squareup.okhttp.* { *; }
-keepattributes Signature
-keepattributes Annotation
メモ
使った時は -keepattributes Annotation を入れなくても問題なく動いた。
他は記載していないと動かなかった。
ただ検索したところこれを記述しているところが多かったので安全のために記述。
SignatureはGenericなどの情報を残すParameterrizedTypeなどを使ったコードが含まれる場合に必要とのこと。