|
@ -26,9 +26,9 @@ public class HttpClientV2 { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
OkHttpClient.Builder httpClient = new OkHttpClient.Builder(); |
|
|
OkHttpClient.Builder httpClient = new OkHttpClient.Builder(); |
|
|
httpClient.connectTimeout(90, TimeUnit.SECONDS); |
|
|
|
|
|
httpClient.readTimeout(90, TimeUnit.SECONDS); |
|
|
|
|
|
httpClient.writeTimeout(90, TimeUnit.SECONDS); |
|
|
|
|
|
|
|
|
httpClient.connectTimeout(150, TimeUnit.SECONDS); |
|
|
|
|
|
httpClient.readTimeout(150, TimeUnit.SECONDS); |
|
|
|
|
|
httpClient.writeTimeout(150, TimeUnit.SECONDS); |
|
|
if (BuildConfig.DEBUG) { |
|
|
if (BuildConfig.DEBUG) { |
|
|
HttpLoggingInterceptor logging = new HttpLoggingInterceptor(); |
|
|
HttpLoggingInterceptor logging = new HttpLoggingInterceptor(); |
|
|
logging.setLevel(HttpLoggingInterceptor.Level.BODY); |
|
|
logging.setLevel(HttpLoggingInterceptor.Level.BODY); |
|
|