Skip to content

Commit b546422

Browse files
authored
Merge pull request #162 from elimu-ai/enable-http
build: enable http
2 parents e84868b + 3b7d920 commit b546422

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

app/src/main/AndroidManifest.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
<permission android:name="${applicationId}.provider.READ" />
88

99
<application
10+
android:networkSecurityConfig="@xml/network_security_config"
1011
android:name=".BaseApplication"
1112
android:allowBackup="true"
1213
android:icon="@mipmap/ic_launcher"

app/src/main/java/ai/elimu/content_provider/BaseApplication.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@ public Retrofit getRetrofit() {
2828
}
2929

3030
/**
31-
* E.g. "https://hin.test.elimu.ai" or "https://hin.elimu.ai"
31+
* E.g. "https://eng.elimu.ai" or "https://hin.elimu.ai"
3232
*/
3333
public String getBaseUrl() {
3434
Language language = SharedPreferencesHelper.getLanguage(getApplicationContext());
35-
String url = "https://" + language.getIsoCode();
35+
String url = "http://" + language.getIsoCode();
3636
url += ".elimu.ai";
3737
return url;
3838
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<network-security-config>
3+
<base-config cleartextTrafficPermitted="true">
4+
<trust-anchors>
5+
<certificates src="system" />
6+
</trust-anchors>
7+
</base-config>
8+
</network-security-config>

0 commit comments

Comments
 (0)