flutter/packages/flutter_tools/lib/src
Andrew Kolos a9c50335c7
remove dependency on Usage from Pub class (#162279)
Towards https://github.com/flutter/flutter/issues/150575

Removes more usage of `Usage`. This PR is scoped to removing all
references to it in `pub`-related code.

<details>

<summary> Pre-launch checklist </summary> 


- [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.

</details>


If you need help, consider asking for advice on the #hackers-new channel
on [Discord].

<!-- Links -->
[Contributor Guide]:
https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md#overview
[Tree Hygiene]:
https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md
[test-exempt]:
https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md#tests
[Flutter Style Guide]:
https://github.com/flutter/flutter/blob/main/docs/contributing/Style-guide-for-Flutter-repo.md
[Features we expect every widget to implement]:
https://github.com/flutter/flutter/blob/main/docs/contributing/Style-guide-for-Flutter-repo.md#features-we-expect-every-widget-to-implement
[CLA]: https://cla.developers.google.com/
[flutter/tests]: https://github.com/flutter/tests
[breaking change policy]:
https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md#handling-breaking-changes
[Discord]:
https://github.com/flutter/flutter/blob/main/docs/contributing/Chat.md
[Data Driven Fixes]:
https://github.com/flutter/flutter/blob/main/docs/contributing/Data-driven-Fixes.md
2025-01-28 17:32:27 +00:00
..
android Android templates: update default Kotlin from 1.8.22 to 2.1.0, update default Gradle from 8.9 to 8.12 (#160974) 2025-01-23 19:39:32 +00:00
base Android templates: update default Kotlin from 1.8.22 to 2.1.0, update default Gradle from 8.9 to 8.12 (#160974) 2025-01-23 19:39:32 +00:00
build_system [native assets] Roll dependencies (#162017) 2025-01-23 09:22:36 +00:00
commands Remove "Mac Designed for iPad" as a discoverable flutter run device (#161459) 2025-01-23 18:51:39 +00:00
custom_devices Auto-format Framework (#160545) 2024-12-19 20:06:21 +00:00
dart remove dependency on Usage from Pub class (#162279) 2025-01-28 17:32:27 +00:00
debug_adapters Auto-format Framework (#160545) 2024-12-19 20:06:21 +00:00
drive Propagate environment variables when flutter drive is invoked. (#161452) 2025-01-13 18:48:58 +00:00
intellij Add validator execution times to flutter doctor --verbose (#158124) 2025-01-13 21:01:44 +00:00
ios When parsing flavors, handle Xcode build configurations that are not lowercase (#161455) 2025-01-24 05:18:33 +00:00
isolated [native assets] Roll dependencies (#162017) 2025-01-23 09:22:36 +00:00
linux Add validator execution times to flutter doctor --verbose (#158124) 2025-01-13 21:01:44 +00:00
localizations Auto-format Framework (#160545) 2024-12-19 20:06:21 +00:00
macos Remove "Mac Designed for iPad" as a discoverable flutter run device (#161459) 2025-01-23 18:51:39 +00:00
migrations Revert "[SwiftPM] Add separate feature flag for the app migration (#158897)" (#161342) 2025-01-09 00:30:06 +00:00
proxied_devices 🔊 [tool] Add a wirelessly connected device name as displayName (#160497) 2025-01-10 20:51:34 +00:00
reporting apply dart_style 3.0.1 (#160875) 2024-12-27 00:06:41 +00:00
runner remove usage of Usage from build system (#160663) 2025-01-16 21:54:58 +00:00
test Support DDC library bundle format and remove support for DDC module format (#161276) 2025-01-09 20:36:43 +00:00
tester Auto-format Framework (#160545) 2024-12-19 20:06:21 +00:00
vscode [ flutter_tool ] Fix flakiness in doctor_test.dart (#161917) 2025-01-20 21:34:29 +00:00
web [ flutter_tool ] Fix flakiness in doctor_test.dart (#161917) 2025-01-20 21:34:29 +00:00
windows [ flutter_tool ] Fix flakiness in doctor_test.dart (#161917) 2025-01-20 21:34:29 +00:00
application_package.dart Auto-format Framework (#160545) 2024-12-19 20:06:21 +00:00
artifacts.dart flutter_tools: flutter_tester is a host artifact (#162047) 2025-01-23 19:23:54 +00:00
asset.dart Auto-format Framework (#160545) 2024-12-19 20:06:21 +00:00
build_info.dart Support DDC library bundle format and remove support for DDC module format (#161276) 2025-01-09 20:36:43 +00:00
bundle_builder.dart remove usage of Usage from build system (#160663) 2025-01-16 21:54:58 +00:00
bundle.dart Auto-format Framework (#160545) 2024-12-19 20:06:21 +00:00
cache.dart Auto-format Framework (#160545) 2024-12-19 20:06:21 +00:00
cmake_project.dart Auto-format Framework (#160545) 2024-12-19 20:06:21 +00:00
cmake.dart Auto-format Framework (#160545) 2024-12-19 20:06:21 +00:00
compile.dart Revert "use uuid from package:uuid instead of from package:usage" (#161292) 2025-01-08 17:11:29 +00:00
compute_dev_dependencies.dart Auto-format Framework (#160545) 2024-12-19 20:06:21 +00:00
context_runner.dart remove dependency on Usage from Pub class (#162279) 2025-01-28 17:32:27 +00:00
convert.dart Auto-format Framework (#160545) 2024-12-19 20:06:21 +00:00
daemon.dart Auto-format Framework (#160545) 2024-12-19 20:06:21 +00:00
desktop_device.dart Auto-format Framework (#160545) 2024-12-19 20:06:21 +00:00
devfs.dart Auto-format Framework (#160545) 2024-12-19 20:06:21 +00:00
device_port_forwarder.dart Auto-format Framework (#160545) 2024-12-19 20:06:21 +00:00
device_vm_service_discovery_for_attach.dart Auto-format Framework (#160545) 2024-12-19 20:06:21 +00:00
device.dart 🔊 [tool] Add a wirelessly connected device name as displayName (#160497) 2025-01-10 20:51:34 +00:00
devtools_launcher.dart Auto-format Framework (#160545) 2024-12-19 20:06:21 +00:00
doctor_validator.dart [ flutter_tool ] Fix flakiness in doctor_test.dart (#161917) 2025-01-20 21:34:29 +00:00
doctor.dart [ flutter_tool ] Fix flakiness in doctor_test.dart (#161917) 2025-01-20 21:34:29 +00:00
emulator.dart Auto-format Framework (#160545) 2024-12-19 20:06:21 +00:00
features.dart Revert "[SwiftPM] Add separate feature flag for the app migration (#158897)" (#161342) 2025-01-09 00:30:06 +00:00
flutter_application_package.dart Auto-format Framework (#160545) 2024-12-19 20:06:21 +00:00
flutter_cache.dart Auto-format Framework (#160545) 2024-12-19 20:06:21 +00:00
flutter_device_manager.dart Auto-format Framework (#160545) 2024-12-19 20:06:21 +00:00
flutter_features.dart Revert "[SwiftPM] Add separate feature flag for the app migration (#158897)" (#161342) 2025-01-09 00:30:06 +00:00
flutter_manifest.dart Auto-format Framework (#160545) 2024-12-19 20:06:21 +00:00
flutter_plugins.dart [Android] Actually remove dev dependencies from release builds (#161343) 2025-01-14 19:36:52 +00:00
flutter_project_metadata.dart Tweak language post-merge of #160695. (#160876) 2024-12-27 21:30:57 +00:00
globals.dart Auto-format Framework (#160545) 2024-12-19 20:06:21 +00:00
http_host_validator.dart [ flutter_tool ] Fix flakiness in doctor_test.dart (#161917) 2025-01-20 21:34:29 +00:00
license_collector.dart Auto-format Framework (#160545) 2024-12-19 20:06:21 +00:00
mdns_discovery.dart Show error on macOS if missing Local Network permissions (#161846) 2025-01-23 18:50:22 +00:00
native_assets.dart [native assets] Rewrite install names for relocated native libraries (#153054) 2024-08-29 14:51:23 +00:00
persistent_tool_state.dart Auto-format Framework (#160545) 2024-12-19 20:06:21 +00:00
platform_plugins.dart Auto-format Framework (#160545) 2024-12-19 20:06:21 +00:00
plugins.dart Auto-format Framework (#160545) 2024-12-19 20:06:21 +00:00
pre_run_validator.dart Auto-format Framework (#160545) 2024-12-19 20:06:21 +00:00
preview_device.dart Auto-format Framework (#160545) 2024-12-19 20:06:21 +00:00
project_validator_result.dart Auto-format Framework (#160545) 2024-12-19 20:06:21 +00:00
project_validator.dart Auto-format Framework (#160545) 2024-12-19 20:06:21 +00:00
project.dart [Android] Actually remove dev dependencies from release builds (#161343) 2025-01-14 19:36:52 +00:00
protocol_discovery.dart Auto-format Framework (#160545) 2024-12-19 20:06:21 +00:00
proxy_validator.dart [ flutter_tool ] Fix flakiness in doctor_test.dart (#161917) 2025-01-20 21:34:29 +00:00
resident_devtools_handler.dart Don't crash flutter tool if Chrome is not available (#154941) 2025-01-21 10:47:16 +00:00
resident_runner.dart Don't crash flutter tool if Chrome is not available (#154941) 2025-01-21 10:47:16 +00:00
run_cold.dart 🔊 [tool] Add a wirelessly connected device name as displayName (#160497) 2025-01-10 20:51:34 +00:00
run_hot.dart Auto-format Framework (#160545) 2024-12-19 20:06:21 +00:00
sksl_writer.dart Auto-format Framework (#160545) 2024-12-19 20:06:21 +00:00
template.dart Bump flutter_template_images to remove TODO. (#160917) 2024-12-27 22:15:54 +00:00
tracing.dart Auto-format Framework (#160545) 2024-12-19 20:06:21 +00:00
update_packages_pins.dart [native assets] Roll dependencies (#162068) 2025-01-23 13:27:41 +00:00
version.dart Auto-format Framework (#160545) 2024-12-19 20:06:21 +00:00
vmservice.dart Auto-format Framework (#160545) 2024-12-19 20:06:21 +00:00
web_template.dart Auto-format Framework (#160545) 2024-12-19 20:06:21 +00:00
xcode_project.dart Revert "[SwiftPM] Add separate feature flag for the app migration (#158897)" (#161342) 2025-01-09 00:30:06 +00:00