2017年12月23日

Retrofit+RxJavaを利用したときのproguardの設定

Androidアプリ開発のためのKotlin実践プログラミング

新品価格
¥3,024から
(2017/12/23 09:19時点)



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 モデルクラス
タグ:java OSS android
posted by マスタカ at 09:19 | Comment(0) | プログラミング | このブログの読者になる | 更新情報をチェックする
この記事へのコメント
コメントを書く
お名前: [必須入力]

メールアドレス:

ホームページアドレス:

コメント: [必須入力]

認証コード: [必須入力]


※画像の中の文字を半角で入力してください。
×

この広告は90日以上新しい記事の投稿がないブログに表示されております。