fix(ci): align Android toolchain and analyzer with Flutter 3.47 - #18566
fix(ci): align Android toolchain and analyzer with Flutter 3.47#18566SelaseKay wants to merge 5 commits into
Conversation
Flutter 3.47 requires Gradle 8.14, AGP 8.11.1, and Kotlin 2.2.20. Await Pigeon futures in analytics async try blocks, and add the native-dir analyzer excludes that format CI now writes.
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize the Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counterproductive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here. |
Flutter 3.47's WASM compiler tree-shakes Query.startAfter, which breaks startAfterDocument e2e under --wasm.
… file Drop duplicated native-dir excludes from analysis_options.yaml files that already include the repo root. Revert the dart2wasm Query.startAfter workaround; it did not fix web-wasm CI.
… file The 3.47 migrator only inspects that project's own yaml for build/** and platform globs; include: of the repo root is not enough.
Check whether the dart2wasm TFA startAfter failure is specific to unpinned 3.47.
Description
Unpinned Flutter 3.47.0 on CI raised the Android dependency floors and enabled
unawaited_return_in_try_block, which is currently failingmainindependently of feature PRs (format,analyze,android-unit-tests,agp9-compatibility).tests/androidapp to Gradle 8.14, AGP 8.11.1, and Kotlin 2.2.20 (Flutter 3.47 error thresholds).return awaitPigeon HostApi calls in asynctryblocks infirebase_analytics_platform_interface.analyzer.excludeentries that Flutter 3.47'sanalysis_options.yamlmigrator writes (build/**,android/**,ios/**,web/**,windows/**,macos/**,linux/**) to eachanalysis_options.yamlit will open. The 3.47 migrator does not followinclude:, so putting the list only on the repo root is not enough to keep format CI from rewriting nested files.webstays on unpinned stable) to check whether the dart2wasm TFAstartAfterfailure is 3.47-specific.Related Issues
None
Checklist
Before you create this PR confirm that it meets all requirements listed below by checking the relevant checkboxes (
[x]).This will ensure a smooth and quick review process. Updating the
pubspec.yamland changelogs is not required.///).melos run analyze) does not report any problems on my PR.Breaking Change
Does your PR require plugin users to manually update their apps to accommodate your change?