flutter/packages/flutter_tools/lib/src
Matan Lurey 18f56e3224
Refactor TestGoldenComparator to be useful for non-web (Android, iOS) integration tests (#160215)
Part of https://github.com/flutter/flutter/issues/160043, makes it
easier to add https://github.com/flutter/flutter/pull/160131.

This PR has no functional changes to any of the code, but does refactor
both the code and tests:

- Makes a number of always non-null but not migrated to non-null
properties, well, not-null
- Creates two concrete methods (`update` and `compare` versus a
positional nullable boolean)
- Uses type signatures instead of `String?` to explain the possible
results of the methods
- Renames the mysterious `shellPath` variable to `flutterTesterBinPath`
- Expands and rewrites internally-facing doc comments
- Moves `WebRenderer` environment variable setting to
`flutter_web_platform.dart`
- Makes the tests have less duplication, and check for update/compare
cases

After this PR, I can use it in the non-web branch of the Flutter tool
without any hacks or TODOS :)

/cc @eyebrowsoffire (trivial web refactoring), @camsim99 (changes being
made to tool).
2024-12-16 22:08:54 +00:00
..
android Refactor gradle task runner to share error handler code (#159452) 2024-12-13 18:51:20 +00:00
base Adjust ignores for 'dart format' (#160382) 2024-12-16 22:01:25 +00:00
build_system [flutter_tools] configure shader compiler to output GLES3 shaders for Android. (#159857) 2024-12-05 20:43:12 +00:00
commands Adjust ignores for 'dart format' (#160382) 2024-12-16 22:01:25 +00:00
custom_devices Move platform-specific log-reading implementation details from ResidentRunner/FlutterDevice to DeviceLogReader implementations (#156181) 2024-11-14 21:29:30 +00:00
dart Fix a bug to skip flutter_gen when synthetic packages are disabled (#160367) 2024-12-16 19:33:34 +00:00
debug_adapters Fix some broken links in DAP readme (#155600) 2024-09-24 14:47:24 +00:00
drive Fix --web-header flag for flutter drive (#159039) 2024-11-21 20:40:11 +00:00
intellij Remove duplicate global declaration of UserMessages (#142281) 2024-01-26 21:41:16 +00:00
ios Don't throw StateError when listing core devices during tool shutdown (#160094) 2024-12-11 20:12:48 +00:00
isolated Fixed typos (#159331) 2024-12-05 16:54:09 +00:00
linux Fix output path for --appSizeBase (#158302) 2024-12-02 19:35:27 +00:00
localizations Fix typo in gen_l10n_types.dart (#159035) 2024-11-25 15:05:03 +00:00
macos Fixed typos (#159331) 2024-12-05 16:54:09 +00:00
migrations Fixed typos (#159331) 2024-12-05 16:54:09 +00:00
proxied_devices Move platform-specific log-reading implementation details from ResidentRunner/FlutterDevice to DeviceLogReader implementations (#156181) 2024-11-14 21:29:30 +00:00
reporting Adjust ignores for 'dart format' (#160382) 2024-12-16 22:01:25 +00:00
runner Adjust ignores for 'dart format' (#160382) 2024-12-16 22:01:25 +00:00
test Refactor TestGoldenComparator to be useful for non-web (Android, iOS) integration tests (#160215) 2024-12-16 22:08:54 +00:00
tester Move explicit package dependencies to a feature flag (#158016) 2024-11-13 18:33:34 -08:00
vscode Remove duplicate global declaration of UserMessages (#142281) 2024-01-26 21:41:16 +00:00
web [tool] Removes deprecated --web-renderer parameter. (#159314) 2024-12-02 18:33:02 +00:00
windows Fix output path for --appSizeBase (#158302) 2024-12-02 19:35:27 +00:00
application_package.dart
artifacts.dart Tighten up throwToolExit, explain when to use it. (#157561) 2024-10-26 03:17:24 +00:00
asset.dart Fix flavor-conditional asset bundling for path dependencies (#156687) 2024-10-15 17:39:01 +00:00
build_info.dart Add deprecation notice for Android x86 when building for the target (#159750) 2024-12-04 16:45:43 +00:00
bundle_builder.dart Move explicit package dependencies to a feature flag (#158016) 2024-11-13 18:33:34 -08:00
bundle.dart Remove the fast reassemble / single widget reload feature (#132255) 2023-08-10 21:48:06 +00:00
cache.dart use root directory as the default for rootOverride in Cache.test constructor (#158201) 2024-11-05 23:00:05 +00:00
cmake_project.dart
cmake.dart Reduce usage of testUsingContext (#131078) 2023-07-24 17:22:25 +00:00
compile.dart [ tool ] Fix expression evaluation not handling errors correctly (#159151) 2024-11-25 15:04:09 +00:00
compute_dev_dependencies.dart Fixed typos (#159331) 2024-12-05 16:54:09 +00:00
context_runner.dart Move explicit package dependencies to a feature flag (#158016) 2024-11-13 18:33:34 -08:00
convert.dart
daemon.dart pattern-matching refactor (#154753) 2024-10-03 18:21:04 +00:00
desktop_device.dart Move platform-specific log-reading implementation details from ResidentRunner/FlutterDevice to DeviceLogReader implementations (#156181) 2024-11-14 21:29:30 +00:00
devfs.dart Replace custom RPCErrorCodes with RPCErrorKind from package:vm_service (#158379) 2024-11-11 15:18:09 +00:00
device_port_forwarder.dart
device_vm_service_discovery_for_attach.dart Support mdns when attaching to proxied devices. (#146021) 2024-04-09 20:00:21 +00:00
device.dart Move platform-specific log-reading implementation details from ResidentRunner/FlutterDevice to DeviceLogReader implementations (#156181) 2024-11-14 21:29:30 +00:00
devtools_launcher.dart Add a --print-dtd flag to print the DTD address served by DevTools server (#144272) 2024-03-25 13:04:18 -07:00
doctor_validator.dart Arrow syntax for getters (#156483) 2024-10-17 19:25:14 +00:00
doctor.dart Add windows build version detection (#154797) 2024-10-22 15:53:08 -04:00
emulator.dart [tools] Add column header for emulators information (#142853) 2024-02-14 12:49:24 +00:00
features.dart [SwiftPM] Rename SWIFT_PACKAGE_MANAGER environment variable to FLUTTER_SWIFT_PACKAGE_MANAGER (#159502) 2024-12-03 19:06:44 +00:00
flutter_application_package.dart Delete packages/flutter_tools/lib/src/fuchsia directory (#154880) 2024-09-17 09:10:02 -07:00
flutter_cache.dart No longer download android-x86-jit-release. (#159011) 2024-11-18 18:22:24 +00:00
flutter_device_manager.dart Move explicit package dependencies to a feature flag (#158016) 2024-11-13 18:33:34 -08:00
flutter_features.dart Move explicit package dependencies to a feature flag (#158016) 2024-11-13 18:33:34 -08:00
flutter_manifest.dart Add support for injecting assets into the widget_preview_scaffold (#159859) 2024-12-10 15:34:33 +00:00
flutter_plugins.dart Fixed typos (#159331) 2024-12-05 16:54:09 +00:00
flutter_project_metadata.dart switch statement cleanup (#148382) 2024-05-16 17:16:06 -07:00
globals.dart Delete packages/flutter_tools/lib/src/fuchsia directory (#154880) 2024-09-17 09:10:02 -07:00
http_host_validator.dart Switch to more reliable flutter.dev link destinations in the tool (#150587) 2024-06-26 23:30:39 +00:00
license_collector.dart
mdns_discovery.dart Adds a new helpful tool exit message for SocketExceptions thrown during mdns discovery (#157638) 2024-10-30 21:20:25 +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 Add missing parameter to TableBorder.symmetric, and improve class constructors (#144279) 2024-03-04 20:20:19 +00:00
platform_plugins.dart Remove extraneous throw. (#157658) 2024-10-26 02:49:20 +00:00
plugins.dart Plugin.isDevDependency if exclusively in dev_dependencies (#157462) 2024-11-07 18:09:22 +00:00
pre_run_validator.dart Add missing parameter to TableBorder.symmetric, and improve class constructors (#144279) 2024-03-04 20:20:19 +00:00
preview_device.dart Move explicit package dependencies to a feature flag (#158016) 2024-11-13 18:33:34 -08:00
project_validator_result.dart
project_validator.dart Remove unused PubDependenciesProjectValidator. (#157516) 2024-10-24 22:05:50 +00:00
project.dart Add support for injecting assets into the widget_preview_scaffold (#159859) 2024-12-10 15:34:33 +00:00
protocol_discovery.dart
proxy_validator.dart Control flow collections: flutter_tools/ (#147450) 2024-05-02 22:19:18 +00:00
resident_devtools_handler.dart Shut down DevTools and DDS processes if flutter_tools is killed by a signal (#159238) 2024-11-21 17:53:57 +00:00
resident_runner.dart Terminate non-detached test devices on flutter run completion (#159170) 2024-11-21 01:21:25 +00:00
run_cold.dart Move platform-specific log-reading implementation details from ResidentRunner/FlutterDevice to DeviceLogReader implementations (#156181) 2024-11-14 21:29:30 +00:00
run_hot.dart [native assets] Create NativeAssetsManifest.json instead of kernel embedding (#159322) 2024-11-27 11:03:19 +00:00
sksl_writer.dart Enable native compilation for windows-arm64 (#141930) 2024-01-26 00:08:20 +00:00
template.dart Fix description in index.html / manifest.json getting double quoted (#131842) 2023-08-18 02:58:20 +00:00
tracing.dart
update_packages_pins.dart Manual pub roll with flutter_tools patch (#160174) 2024-12-16 21:41:54 +00:00
version.dart Do not silently fail pub get even if output-mode is "none" (#153596) 2024-08-22 09:12:54 -07:00
vmservice.dart [ tool ] Fix expression evaluation not handling errors correctly (#159151) 2024-11-25 15:04:09 +00:00
web_template.dart Tighten up throwToolExit, explain when to use it. (#157561) 2024-10-26 03:17:24 +00:00
xcode_project.dart [SwiftPM] Move the logic for SwiftPM enablement to the platform project (#158213) 2024-11-13 21:45:07 +00:00