2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

OkHttpを使った時のプロガード設定

2
Posted at

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などを使ったコードが含まれる場合に必要とのこと。

2
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?