Skip to content

fix(flutter): read unlabeled Dart Version::String() from engines - #7232

Merged
morluto merged 2 commits into
morluto:mainfrom
BeqaKs:fix/flutter-unlabeled-dart-version
Nov 3, 2026
Merged

morluto merged 2 commits into
morluto:mainfrom
BeqaKs:fix/flutter-unlabeled-dart-version

Conversation

@BeqaKs

@BeqaKs BeqaKs commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Accept Dart's unlabeled Version::String() form (<version> (<channel>) (<commit time>) with optional on "<os>_<arch>") in LabeledStringScanner, alongside the existing Dart VM version: label.
  • Keep unmatched unlabeled runs ignored (no dart_version_capped), and update Gallery expectations plus flutter analysis docs/schema wording.

Fixes #7226

Problem and expected behavior

Release libflutter.so embeds the Dart version without the standalone VM label, so identify_flutter_build reported dart_version: null on real APKs including Flutter Gallery.

Change and scope

Pattern match is channel-bearing and whole-run, so ordinary dotted version text stays ignored. Unlabeled matches are candidates by string shape, not verified symbol identities; the result limitation, schema description and documentation now disclose that distinction, including the possibility of unrelated matching text. Contribution scope: ordinary fix within the existing Flutter identification boundary; maintainer scope decision not applicable.

Contract and boundary impact

  • Semantic owner: LabeledStringScanner / Flutter payload scan
  • CLI and MCP: identify_flutter_build dart_version observation only
  • Generated metadata: none authored; schema description text only

Expected effects:

  • Read existing files or captured data.
  • Documentation or usability only; no target interaction. (docs + fixture expectations accompany the scanner fix)

Evidence and regression coverage

Validation performed

  • npm run test:local -- src/flutter/FlutterPayloadScan.test.ts — 23 passed
  • npm run check:fast — passed
  • npm run test:focused -- tests/boundary/filesystem/flutterBuildProvider.test.ts — 109 passed, including an unrelated matching string and the qualification limitation
  • npm run docs:check — passed (9 README conformance tests)
  • npm run verify:flutter -- --apk PATH --expectations scripts/fixtures/flutter-gallery-expectations.json — passed against official Flutter Gallery 2.9.2 (SHA-256 659b5fc6a4319dfe4f117d00ad4e7ec004915ebcadcb96628797fb3544040e29); CLI/MCP parity and expected per-ABI strings passed. Full AOT string-pool projection remains bounded and partial.

Author readiness

Human owner: @BeqaKs

  • I reviewed the final diff and relevant existing code, understand the change and its edge cases, and take responsibility for the complete PR, including AI-assisted work.
  • I checked the evidence above, confirmed it supports the current change, and recorded meaningful validation gaps.
  • I declare this PR ready for initial maintainer review.

Before merge

  • This PR addresses a concrete problem or an agreed enhancement.
  • Material scope and authority questions are resolved, and any required maintainer scope decision covers the final diff.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ⚠️ Failed 2026-10-26T12:07:30.439596Z
We couldn’t complete this review. Comment @codex review to try again.
3f8958f PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@BeqaKs
BeqaKs force-pushed the fix/flutter-unlabeled-dart-version branch 2 times, most recently from b482b85 to 1a2711e Compare October 26, 2026 12:07
@greptile-apps

greptile-apps Bot commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; no blocking issue was found.

Summary

Adds support for unlabeled Dart version strings embedded in release engines.

  • Flutter APK scans report unlabeled Dart version candidates.

Reviews (6) · Last reviewed commit: "fix(flutter): qualify unlabeled version ..." · Reviewed by Greptile

BeqaKs and others added 2 commits November 2, 2026 20:27
Release libflutter.so embeds Dart's Version::String() without the
standalone VM's "Dart VM version:" label, so identify_flutter_build left
dart_version null on real APKs. Accept that channel-bearing form beside
the labeled scanner path.
@BeqaKs
BeqaKs force-pushed the fix/flutter-unlabeled-dart-version branch from f7973d5 to 2b3e222 Compare November 2, 2026 16:27
@morluto
morluto merged commit f59d884 into morluto:main Nov 3, 2026
45 checks passed
@morluto morluto added bug Something isn't working provider: flutter Analysis provider / engine: flutter labels Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working provider: flutter Analysis provider / engine: flutter

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] identify_flutter_build reports dart_version null on release engines

2 participants