File tree Expand file tree Collapse file tree
src/main/java/org/openimis/imisclaims/network/util Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ android {
6767 demoProd {
6868 applicationIdSuffix " .demoProd"
6969 resValue " string" , " app_name_claims" , " Claims Demo"
70- buildConfigField " String" , " API_BASE_URL" , ' "http ://demo.openimis.org /"'
70+ buildConfigField " String" , " API_BASE_URL" , ' "https ://dev.amg.km /"'
7171 dimension ' std'
7272 }
7373
Original file line number Diff line number Diff line change 88import org .openimis .imisclaims .Global ;
99import org .openimis .imisclaims .network .okhttp .AuthorizationInterceptor ;
1010
11+ import java .util .concurrent .TimeUnit ;
12+
1113import javax .net .ssl .SSLContext ;
1214import javax .net .ssl .TrustManager ;
1315import javax .net .ssl .X509TrustManager ;
@@ -29,6 +31,9 @@ public static OkHttpClient getDefaultOkHttpClient() {
2931 synchronized (OkHttpUtils .class ) {
3032 if (client == null ) {
3133 OkHttpClient .Builder builder = new OkHttpClient .Builder ();
34+ builder .connectTimeout (2000 , TimeUnit .SECONDS )
35+ .writeTimeout (2000 ,TimeUnit .SECONDS )
36+ .readTimeout (2000 , TimeUnit .SECONDS );
3237 HttpLoggingInterceptor interceptor = new HttpLoggingInterceptor ();
3338 interceptor .setLevel (BuildConfig .DEBUG ? HttpLoggingInterceptor .Level .BODY : HttpLoggingInterceptor .Level .BASIC );
3439 builder .addInterceptor (interceptor );
You can’t perform that action at this time.
0 commit comments