From 94db3c66ffc025869bbb83b7ed9723ff2d845fc9 Mon Sep 17 00:00:00 2001 From: Matt Boetger Date: Mon, 2 Mar 2026 18:40:49 -0800 Subject: [PATCH 1/3] remove metadata network policy --- packages/espresso/CHANGELOG.md | 4 ++++ packages/espresso/README.md | 8 +------- .../example/android/app/src/debug/AndroidManifest.xml | 5 +---- packages/espresso/pubspec.yaml | 2 +- 4 files changed, 7 insertions(+), 12 deletions(-) diff --git a/packages/espresso/CHANGELOG.md b/packages/espresso/CHANGELOG.md index 14b7dce5dcae..93a26e5f6479 100644 --- a/packages/espresso/CHANGELOG.md +++ b/packages/espresso/CHANGELOG.md @@ -1,3 +1,7 @@ +## 0.4.0+23 + +* Updates README to remove instructions to use network metadata tag. + ## 0.4.0+22 * Updates minimum supported SDK version to Flutter 3.35/Dart 3.9. diff --git a/packages/espresso/README.md b/packages/espresso/README.md index ae65ec5b247f..7858d1477328 100644 --- a/packages/espresso/README.md +++ b/packages/espresso/README.md @@ -15,13 +15,7 @@ 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 `````` in the AndroidManifest.xml -of the Android app used for testing. Also add the meta-data tag in the `````` that -will notify Flutter of the network configuration: - -```xml - -``` +of the Android app used for testing. Then you will need to create a `network_security_config.xml` in the `res/xml/` directory. diff --git a/packages/espresso/example/android/app/src/debug/AndroidManifest.xml b/packages/espresso/example/android/app/src/debug/AndroidManifest.xml index 3175142fb29d..437b06c69bca 100644 --- a/packages/espresso/example/android/app/src/debug/AndroidManifest.xml +++ b/packages/espresso/example/android/app/src/debug/AndroidManifest.xml @@ -3,8 +3,5 @@ to allow setting breakpoints, to provide hot reload, etc. --> - - - + diff --git a/packages/espresso/pubspec.yaml b/packages/espresso/pubspec.yaml index dbec8b813844..63e77af8c5a9 100644 --- a/packages/espresso/pubspec.yaml +++ b/packages/espresso/pubspec.yaml @@ -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 From 39d7449f2a393e7bd5323b0ac2bc7801975c3e2c Mon Sep 17 00:00:00 2001 From: Matt Boetger Date: Mon, 2 Mar 2026 18:53:25 -0800 Subject: [PATCH 2/3] Update packages/espresso/CHANGELOG.md Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> --- packages/espresso/CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/espresso/CHANGELOG.md b/packages/espresso/CHANGELOG.md index 93a26e5f6479..e944f4264b9e 100644 --- a/packages/espresso/CHANGELOG.md +++ b/packages/espresso/CHANGELOG.md @@ -1,6 +1,6 @@ ## 0.4.0+23 -* Updates README to remove instructions to use network metadata tag. +* Removed the unused `io.flutter.network-policy` metadata tag from the README and example application. ## 0.4.0+22 From b0b79d568bee713ed979e688842f0e62b1b791c2 Mon Sep 17 00:00:00 2001 From: Matt Boetger Date: Mon, 2 Mar 2026 19:12:45 -0800 Subject: [PATCH 3/3] make clearer --- packages/espresso/README.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/packages/espresso/README.md b/packages/espresso/README.md index 7858d1477328..d7c61dc9e407 100644 --- a/packages/espresso/README.md +++ b/packages/espresso/README.md @@ -14,11 +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 `````` in the AndroidManifest.xml -of the Android app used for testing. +Add ```android:networkSecurityConfig="@xml/network_security_config"``` in the `````` in the AndroidManifest.xml of the Android app used for testing. -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