| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
[tool] Migrate CoverageCollector to modular dependency injection (#192924) ## Description This pull request migrates `CoverageCollector` in `flutter_tools` to modular dependency injection using `ToolContext`. This is Layer 21b in the modular dependency injection migration for the testing subsystem (stacked on Layer 21a [#192923](https://github.com/flutter/flutter/pull/192923)). ### Fork Compare Link * Compare: https://github.com/bkonyi/flutter/compare/master...di/21b-coverage-collector Part of [#188471](https://github.com/flutter/flutter/issues/188471). ## Tests * `test/general.shard/coverage_collector_test.dart` | 22 小时前 | |
[tool] Migrate BuildApkCommand and Android build toolchain to modular dependency injection (#190776) ## Summary Part 14 of the modular dependency injection migration. * Migrates `BuildApkCommand` (`flutter build apk`) and shared Android toolchain components to modular constructor dependency injection: ```dart BuildApkCommand({ required AndroidBuilder androidBuilder, required AndroidContext androidContext, required BuildSystem buildSystem, required ToolContext toolContext, bool verboseHelp = false, }) ``` * Requires non-nullable `AndroidBuilder` in `BuildCommand` and `AndroidGradleBuilder`, eliminating ambient `globals.dart` and `context.get<AndroidBuilder>()` fallbacks. * Requires explicit `Analytics` and `Logger` in `exitWithNoSdkMessage`. * Defers `BuildAppBundleCommand` and `BuildAarCommand` migrations to stacked follow-up PRs ([#190778](https://github.com/flutter/flutter/pull/190778) / `di/14b-build-appbundle` and `di/14c-build-aar`). * Converts Android build command tests to hermetic `testWithoutContext` where applicable. Part of https://github.com/flutter/flutter/issues/188471 --------- Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> | 11 天前 | |
[tool] Migrate AssembleCommand and GenerateCommand to modular dependency injection (#190773) ## Summary Part 13 of the modular dependency injection migration. * Migrates `AssembleCommand`, `GenerateCommand`, and `GenerateLocalizationsCommand` to constructor dependency injection: - `AssembleCommand({required BuildSystem buildSystem, required FeatureFlags featureFlags, required ToolContext toolContext, bool verboseHelp = false})` - `GenerateCommand({required ToolContext toolContext})` - `GenerateLocalizationsCommand({required ToolContext toolContext})` * Eliminates `globals.featureFlags` and ambient context lookups across assemble/generate workflows; exposes `featureFlags` on `ToolDependencies`. * Requires explicit `logger` in `parseLocalizationsOptionsFromCommand` and explicit `featureFlags` in `artifactFromTargetPlatform`. * Migrates unit tests in `packages/flutter_tools/test/commands.shard/hermetic/assemble_test.dart` and `generate_localizations_test.dart` to hermetic `testWithoutContext`. Part of https://github.com/flutter/flutter/issues/188471 | 21 天前 |
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
| 22 小时前 | ||
| 11 天前 | ||
| 21 天前 |