[samples] Remove usesCleartextTraffic (#2809)

Removes deprecated usesCleartextTraffic. 

Addresses: https://github.com/flutter/flutter/issues/182553
main
Matt Boetger 1 day ago committed by GitHub
parent 2354fdc309
commit b3e8122e82
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -1,8 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<!-- Include Cleartext traffic for the espresso package -->
<application android:usesCleartextTraffic="true" />
<!-- The network security config is needed for Espresso testing since it
uses http cleartext traffic.
-->
<application android:networkSecurityConfig="@xml/network_security_config">
<meta-data android:name="io.flutter.network-policy"
android:resource="@xml/network_security_config"/>
</application>
</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>
Loading…
Cancel
Save