mirror of https://github.com/flutter/samples.git
[samples] Remove usesCleartextTraffic (#2809)
Removes deprecated usesCleartextTraffic. Addresses: https://github.com/flutter/flutter/issues/182553main
parent
2354fdc309
commit
b3e8122e82
@ -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…
Reference in new issue