|
@ -110,7 +110,9 @@ public class BaseApplication extends Application { |
|
|
} |
|
|
} |
|
|
return chain.proceed(request); |
|
|
return chain.proceed(request); |
|
|
}) |
|
|
}) |
|
|
.callTimeout(30, TimeUnit.SECONDS); |
|
|
.connectTimeout(30, TimeUnit.SECONDS) |
|
|
|
|
|
.writeTimeout(30, TimeUnit.SECONDS) |
|
|
|
|
|
.readTimeout(30, TimeUnit.SECONDS); |
|
|
|
|
|
|
|
|
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.LOLLIPOP) { // Just for KitKats
|
|
|
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.LOLLIPOP) { // Just for KitKats
|
|
|
// Necessary because our servers don't have the right cipher suites.
|
|
|
// Necessary because our servers don't have the right cipher suites.
|
|
|