mirror of
https://github.com/flutter/samples.git
synced 2026-03-21 20:08:16 +00:00
[samples] Remove usesCleartextTraffic (#2809)
Removes deprecated usesCleartextTraffic. Addresses: https://github.com/flutter/flutter/issues/182553
This commit is contained in:
@@ -1,8 +1,10 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<!-- The network security config is needed for Espresso testing since it
|
||||||
<!-- Include Cleartext traffic for the espresso package -->
|
uses http cleartext traffic.
|
||||||
|
-->
|
||||||
<application android:usesCleartextTraffic="true" />
|
<application android:networkSecurityConfig="@xml/network_security_config">
|
||||||
|
<meta-data android:name="io.flutter.network-policy"
|
||||||
|
android:resource="@xml/network_security_config"/>
|
||||||
|
</application>
|
||||||
</manifest>
|
</manifest>
|
||||||
|
|||||||
@@ -0,0 +1,6 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<network-security-config>
|
||||||
|
<!-- Cleartext is needed for Espresso testing. -->
|
||||||
|
<base-config cleartextTrafficPermitted="true">
|
||||||
|
</base-config>
|
||||||
|
</network-security-config>
|
||||||
Reference in New Issue
Block a user