Skip to content

Commit 3aab019

Browse files
chore(example): add network_security_config to support proxy
Added the network_security_config configuration to support proxy tools for android
1 parent cb0cfa7 commit 3aab019

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

example/android/app/src/main/AndroidManifest.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
android:label="Instabug - Flutter"
1717
android:name="${applicationName}"
1818
android:icon="@mipmap/ic_launcher"
19+
android:networkSecurityConfig="@xml/network_security_config"
1920
android:usesCleartextTraffic="true">
2021
<activity
2122
android:name=".MainActivity"
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<network-security-config>
3+
<domain-config cleartextTrafficPermitted="true">
4+
<domain includeSubdomains="true">localhost</domain>
5+
</domain-config>
6+
<base-config>
7+
<trust-anchors>
8+
<certificates src="system" />
9+
<certificates src="user" />
10+
</trust-anchors>
11+
</base-config>
12+
</network-security-config>

0 commit comments

Comments
 (0)