diff --git a/retrofitlite/build.gradle b/retrofitlite/build.gradle index 686a6e7..ac56b78 100755 --- a/retrofitlite/build.gradle +++ b/retrofitlite/build.gradle @@ -6,7 +6,7 @@ publish { repoName = 'android' groupId = 'com.aslam' artifactId = 'retrofit-lite' - publishVersion = '1.0.4' + publishVersion = '1.0.5' desc = 'Retrofit-Lite for Android - Lightweight HTTP client based on OKhttp and Retrofit' website = 'https://github.com/aslamanver/retrofit-lite' } @@ -17,7 +17,7 @@ android { minSdkVersion 15 targetSdkVersion 28 versionCode 104 - versionName "1.0.4" + versionName "1.0.5" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" consumerProguardFiles 'consumer-rules.pro' } diff --git a/retrofitlite/src/main/java/com/retrofit/lite/services/APIClient.java b/retrofitlite/src/main/java/com/retrofit/lite/services/APIClient.java index 2366d5e..cbba8f0 100755 --- a/retrofitlite/src/main/java/com/retrofit/lite/services/APIClient.java +++ b/retrofitlite/src/main/java/com/retrofit/lite/services/APIClient.java @@ -94,6 +94,9 @@ public boolean verify(String hostname, SSLSession session) { } okHttpClientBuilder.callTimeout(builder.TIMEOUT_MILLIS, TimeUnit.MILLISECONDS); + okHttpClientBuilder.connectTimeout(builder.TIMEOUT_MILLIS, TimeUnit.MILLISECONDS); + okHttpClientBuilder.readTimeout(builder.TIMEOUT_MILLIS, TimeUnit.MILLISECONDS); + okHttpClientBuilder.writeTimeout(builder.TIMEOUT_MILLIS, TimeUnit.MILLISECONDS); okHttpClientBuilder.addInterceptor(new Interceptor() { @Override