Commit 1c4c583c authored by Chamod Ishankha's avatar Chamod Ishankha

security domain add

parent 6cd9fbc3
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<project version="4"> <project version="4">
<component name="deploymentTargetDropDown"> <component name="deploymentTargetDropDown">
<value> <value>
<entry key="app"> <entry key="MainActivity">
<State /> <State />
</entry> </entry>
</value> </value>
......
...@@ -106,7 +106,7 @@ public class RegisterActivity extends AppCompatActivity { ...@@ -106,7 +106,7 @@ public class RegisterActivity extends AppCompatActivity {
@Override @Override
public void onFailure(Call<UserDto> call, Throwable t) { public void onFailure(Call<UserDto> call, Throwable t) {
Toast.makeText(RegisterActivity.this, "Error to Failure", Toast.LENGTH_LONG).show(); Toast.makeText(RegisterActivity.this, "Error:" + t.getMessage(), Toast.LENGTH_LONG).show();
loader(overlay, progressBar, false); loader(overlay, progressBar, false);
} }
}); });
......
...@@ -16,7 +16,7 @@ import retrofit2.converter.gson.GsonConverterFactory; ...@@ -16,7 +16,7 @@ import retrofit2.converter.gson.GsonConverterFactory;
import retrofit2.converter.jackson.JacksonConverterFactory; import retrofit2.converter.jackson.JacksonConverterFactory;
public class ApiConfig { public class ApiConfig {
private static final String BASE_URL = "http://192.168.1.2:8080/api/v1/baby-care/"; private static final String BASE_URL = "http://192.168.63.103:8080/api/v1/baby-care/";
private static ApiConfig instance; private static ApiConfig instance;
private static Retrofit retrofitAuth = null; private static Retrofit retrofitAuth = null;
private static Retrofit retrofitOther = null; private static Retrofit retrofitOther = null;
......
...@@ -3,5 +3,6 @@ ...@@ -3,5 +3,6 @@
<domain-config cleartextTrafficPermitted="true"> <domain-config cleartextTrafficPermitted="true">
<domain includeSubdomains="true">192.168.1.2</domain> <domain includeSubdomains="true">192.168.1.2</domain>
<domain includeSubdomains="true">192.168.1.6</domain> <domain includeSubdomains="true">192.168.1.6</domain>
<domain includeSubdomains="true">192.168.63.103</domain>
</domain-config> </domain-config>
</network-security-config> </network-security-config>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment