In our application, we use a modification for networks with the following dependencies:
compile 'com.squareup.retrofit2:retrofit:2.3.0' compile 'com.squareup.retrofit2:converter-gson:2.3.0'
Recently, we started getting this crash , which was allowed. How can I fix this in our application? I understand that the upgrade is built on top of the okHttp library. Does this mean that we will have to wait for the new version of the modification, which includes the new version of okHttp, or can I manually include the new version of okHttp in a separate dependency and as a result:
compile 'com.squareup.retrofit2:retrofit:2.3.0' compile 'com.squareup.retrofit2:converter-gson:2.3.0' compile 'com.squareup.okhttp3:okhttp:3.8.1'
Proguard Configuration (Modified Part Only)
-dontnote retrofit2.Platform -dontwarn retrofit2.Platform$Java8 -dontwarn okhttp3.** -dontwarn retrofit2.** -dontwarn com.squareup.picasso.** -keep class retrofit2.** { *; } -keepattributes Signature -keepattributes Exceptions -keepclasseswithmembers class * { @retrofit2.http.* <methods>; } -keepclasseswithmembers interface * { @retrofit2.* <methods>; } -dontwarn okio.**
source share