You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 9301753
Browse filesBrowse the repository at this point in the historyBrowse files
refactor(flutter_tools): share FlutterCommand options and OptionBundles (flutter#194356)
Moves the remaining shared CLI options on `FlutterCommand` into
declarative option descriptors and bundles, and replaces untyped
argument lookups in the command runner with typed descriptor reads.
- **Shared option bundles for leaf commands**: Groups common CLI
flags—device discovery, VM service/DevTools ports, filesystem overrides,
resident compiler settings, engine rendering flags, and build mode
configuration—into reusable bundles. This sets the stage for follow-up
PRs migrating `assemble` (flutter#194358), `attach` (flutter#194359), `drive`
(flutter#194360), `test` (flutter#194361), and `run` (flutter#194362).
- **Deduplicated build flags**: Consolidates duplicate definitions and
drifted help text for `--config-only`, `--target-platform` (`build apk`,
`build aar`, `build appbundle`), `--static` (`build ios-framework`,
`build macos-framework`, `build swift-package`), and
`--performance-measurement-file`.
Part of flutter#194338
## Pre-launch Checklist
- [x] I read the [Contributor Guide] and followed the process outlined
there for submitting PRs.
- [x] I read the [Tree Hygiene] wiki page, which explains my
responsibilities.
- [x] I read and followed the [Flutter Style Guide], including [Features
we expect every widget to implement].
- [x] I signed the [CLA].
- [x] I listed at least one issue that this PR fixes in the description
above.
- [x] I updated/added relevant documentation (doc comments with `///`).
- [x] I added new tests to check the change I am making, or this PR is
[test-exempt].
- [x] I followed the [breaking change policy] and added [Data Driven
Fixes] where supported.
- [x] All existing and new tests are passing.
0 commit comments