Fixing NPE. And obfuscation.

This commit is contained in:
Amine Bou 2018-03-29 19:58:29 +02:00
parent 99a305f3e2
commit edb5eabee7
2 changed files with 6 additions and 2 deletions

View File

@ -48,7 +48,11 @@
#} #}
-dontwarn okio.** -dontwarn okio.**
-dontwarn retrofit2.Platform$Java8 -dontwarn retrofit2.Platform$Java8
-keepattributes Signature -keep class retrofit.** { *; }
-keepclasseswithmembers class * {
@retrofit.http.* <methods>;
}
-keepattributes *Annotation*,Signature
-keepattributes Exceptions -keepattributes Exceptions
-dontwarn okio.** -dontwarn okio.**
-dontwarn javax.annotation.Nullable -dontwarn javax.annotation.Nullable

View File

@ -1072,7 +1072,7 @@ class HomeActivity : AppCompatActivity(), SearchView.OnQueryTextListener {
if (debugReadingItems) { if (debugReadingItems) {
readAllDebug( readAllDebug(
Throwable("Got response, but : response.body() (${response.body()}) != null && response.body()!!.isSuccess (${response.body()!!.isSuccess})") Throwable("Got response, but : response.body() (${response.body()}) != null && response.body()!!.isSuccess (${response.body()?.isSuccess})")
) )
} }