Skip to content

fix(decorations): only offer default devices the project can run on - #537

Merged
sidlatau merged 1 commit into
mainfrom
fix/device-decoration-project-platforms
Sep 25, 2026
Merged

sidlatau merged 1 commit into
mainfrom
fix/device-decoration-project-platforms

Conversation

@sidlatau

Copy link
Copy Markdown
Collaborator

Follow-up to #536.

  • The default device only counts devices whose platform directory (ios/, macos/, web/, ...) exists in the project, like flutter run does
  • Desktop/web detection uses the platform prefix, so new architectures like linux-riscv64 are covered
  • Notices printed before the flutter devices --machine JSON no longer break parsing
  • No lookup outside a Flutter project (loose Dart files)

- Skip devices whose platform directory (ios/, macos/, web/, ...) is missing from the project
- Detect desktop and web targets by platform prefix instead of a fixed list
- Ignore notices printed before the `flutter devices --machine` JSON
- Skip the default device lookup outside a Flutter project
@sidlatau
sidlatau merged commit 7e99933 into main Sep 25, 2026
7 checks passed
@sidlatau
sidlatau deleted the fix/device-decoration-project-platforms branch September 25, 2026 07:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant