flutter/packages/flutter_tools/test
Matan Lurey a6a8caaa73
Read AndroidManifest.xml and emit manifest-impeller-(enabled|disabled) analytics (#150791)
Work towards https://github.com/flutter/flutter/issues/132712.

After this PR, after a completed `flutter build apk` command, we:

- Emit a `manifest-impeller-disabled` command if `io.flutter.embedding.android.EnableImpeller` is `'false'`.
- Emit a `manifest-impeller-disabled` command if `io.flutter.embedding.android.EnableImpeller` is _missing_.
- Emit a `manifest-impeller-enabled` command if `io.flutter.embedding.android.EnableImpeller` is `'true'`.

We will need to change the default (see `_impellerEnabledByDefault` in `project.dart`) before releasing, otherwise we will misreport `manifest-impeller-disabled` at a much higher rate than actual. If there is a way to instead compute the default instead of hard-coding, that would have been good.

See <https://docs.flutter.dev/perf/impeller#android> for details on the key-value pair.

---

I also did a tad of TLC, by removing the (now-defunct) `Usage` events for `flutter build ios`, so they are consistent.

/cc @zanderso, @chinmaygarde, @jonahwilliams
2024-06-25 22:41:23 +00:00
..
android_preview_integration.shard Make flutter tool enforce >= kotlin 1.7.0, Gradle 7.0.2, and AGP 7.0.0, and Fix test failures blocking androidx upgrade (#149204) 2024-06-18 20:24:09 +00:00
commands.shard Read AndroidManifest.xml and emit manifest-impeller-(enabled|disabled) analytics (#150791) 2024-06-25 22:41:23 +00:00
data make asset_test.dart tests not dependent on context (#141331) 2024-01-11 18:08:07 +00:00
general.shard [tool] make ErrorHandlingFileSystem.deleteIfExists catch error code 3 (ERROR_PATH_NOT_FOUND on Windows) (#150741) 2024-06-25 16:24:04 +00:00
host_cross_arch.shard Add test for engine artifact framework permissions (#148786) 2024-06-18 17:07:21 +00:00
integration.shard Improve build time when using SwiftPM (#150052) 2024-06-12 21:16:07 +00:00
src Reland "if chains → switch expressions" (#148634) 2024-05-20 17:43:00 +00:00
web.shard [flutter_tools] Shut down Chromium cleanly using a command sent through the debug protocol (#150645) 2024-06-25 21:43:02 +00:00