Skip to content

Commit b3e8122

Browse files
authored
[samples] Remove usesCleartextTraffic (#2809)
Removes deprecated usesCleartextTraffic. Addresses: flutter/flutter#182553
1 parent 2354fdc commit b3e8122

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed
Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
3-
4-
<!-- Include Cleartext traffic for the espresso package -->
5-
6-
<application android:usesCleartextTraffic="true" />
7-
3+
<!-- The network security config is needed for Espresso testing since it
4+
uses http cleartext traffic.
5+
-->
6+
<application android:networkSecurityConfig="@xml/network_security_config">
7+
<meta-data android:name="io.flutter.network-policy"
8+
android:resource="@xml/network_security_config"/>
9+
</application>
810
</manifest>
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<network-security-config>
3+
<!-- Cleartext is needed for Espresso testing. -->
4+
<base-config cleartextTrafficPermitted="true">
5+
</base-config>
6+
</network-security-config>

0 commit comments

Comments
 (0)