Skip to content

Commit 42e78f8

Browse files
authored
Allow using custom tile server via HTTP (#3976)
1 parent 537b793 commit 42e78f8

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

app/src/main/AndroidManifest.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,8 @@
105105
android:supportsRtl="true"
106106
android:hardwareAccelerated="true"
107107
android:theme="@style/SplashTheme"
108-
android:localeConfig="@xml/locales_config">
108+
android:localeConfig="@xml/locales_config"
109+
android:networkSecurityConfig="@xml/network_security_config">
109110

110111
<!-- Default crash collection and analytics off until we (possibly) turn it on in application.onCreate -->
111112
<meta-data
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<network-security-config>
3+
<base-config cleartextTrafficPermitted="false">
4+
<trust-anchors>
5+
<certificates src="system"/>
6+
</trust-anchors>
7+
</base-config>
8+
9+
<domain-config cleartextTrafficPermitted="true">
10+
<domain includeSubdomains="true">127.0.0.1</domain>
11+
<domain includeSubdomains="true">localhost</domain>
12+
</domain-config>
13+
</network-security-config>

0 commit comments

Comments
 (0)