- added ssl certificate
parent
6d9ba4d87b
commit
c199cc5421
|
@ -3,13 +3,13 @@ package com.utopiaindustries.qualitychecker.apiservice;
|
|||
import com.google.gson.Gson;
|
||||
import com.google.gson.GsonBuilder;
|
||||
|
||||
import okhttp3.OkHttpClient;
|
||||
import retrofit2.Retrofit;
|
||||
import retrofit2.converter.gson.GsonConverterFactory;
|
||||
|
||||
public class RetrofitClient {
|
||||
|
||||
// private final static String BASE_URL = "https://portal.utopiaindustries.pk/uind/";
|
||||
private final static String BASE_URL = "http://192.168.91.16:8080/uind/";
|
||||
private final static String BASE_URL = "https://portal.utopiaindustries.pk/uind/";
|
||||
// private final static String BASE_URL = "http://192.168.91.16:8080/uind/";
|
||||
|
||||
private static Retrofit retrofit;
|
||||
|
||||
|
|
|
@ -91,6 +91,7 @@ public class LoginActivity extends AppCompatActivity {
|
|||
@Override
|
||||
public void onFailure(Call<Boolean> call, Throwable t) {
|
||||
progressBar.setVisibility( View.INVISIBLE );
|
||||
System.out.println( t.getMessage() );
|
||||
Snackbar.make( v, "Something went wrong", Snackbar.LENGTH_LONG ).show();
|
||||
}
|
||||
});
|
||||
|
|
Binary file not shown.
|
@ -6,4 +6,10 @@
|
|||
<certificates src="system" />
|
||||
</trust-anchors>
|
||||
</base-config>
|
||||
<domain-config>
|
||||
<domain includeSubdomains="true">portal.utopiaindustries.pk</domain>
|
||||
<trust-anchors>
|
||||
<certificates src="@raw/certificate"/>
|
||||
</trust-anchors>
|
||||
</domain-config>
|
||||
</network-security-config>
|
||||
|
|
Loading…
Reference in New Issue