Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions packages/espresso/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.4.0+23

* Removed the unused `io.flutter.network-policy` metadata tag from the README and example application.

## 0.4.0+22

* Updates minimum supported SDK version to Flutter 3.35/Dart 3.9.
Expand Down
12 changes: 2 additions & 10 deletions packages/espresso/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,9 @@ Since Espresso uses cleartext traffic via a websocket to coordinate
testing, cleartext traffic will need to be enabled for testing. Please
only do this for testing (in debug or androidTest).

Add ```android:networkSecurityConfig="@xml/network_security_config"``` in the ```<application>``` in the AndroidManifest.xml
of the Android app used for testing. Also add the meta-data tag in the ```<application>``` that
will notify Flutter of the network configuration:
Add ```android:networkSecurityConfig="@xml/network_security_config"``` in the ```<application>``` in the AndroidManifest.xml of the Android app used for testing.

```xml
<meta-data android:name="io.flutter.network-policy"
android:resource="@xml/network_security_config"/>
```

Then you will need to create a `network_security_config.xml` in the
`res/xml/` directory.
Then you will need to create a `network_security_config.xml` in the `res/xml/` directory.

```xml
<?xml version="1.0" encoding="utf-8"?>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,5 @@
to allow setting breakpoints, to provide hot reload, etc.
-->
<uses-permission android:name="android.permission.INTERNET"/>
<application android:networkSecurityConfig="@xml/network_security_config">
<meta-data android:name="io.flutter.network-policy"
android:resource="@xml/network_security_config"/>
</application>
<application android:networkSecurityConfig="@xml/network_security_config" />
</manifest>
2 changes: 1 addition & 1 deletion packages/espresso/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description: Java classes for testing Flutter apps using Espresso.
Allows driving Flutter widgets from a native Espresso test.
repository: https://github.com/flutter/packages/tree/main/packages/espresso
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+espresso%22
version: 0.4.0+22
version: 0.4.0+23

environment:
sdk: ^3.9.0
Expand Down
Loading