In Android Studio, to add the exceptions to ProGuard, open up the file proguard-rules.pro in the editor. Add in the following lines.
# for Retrofit -keepattributes Signature -keepattributes Exceptions -keep class com.squareup.** { *; } -keep interface com.squareup.** { *; } -keep interface retrofit.** { *;} -keep class retrofit.** { *; } -keepclasseswithmembers class * { @retrofit.http.* <methods>; } -dontwarn com.squareup.okhttp.** -dontwarn rx.** -dontwarn retrofit.** # add your JSON classes here -keep class com.dom.mypackage.myclass.** { *; }
No comments:
Post a Comment