flutter/packages/flutter_tools/lib/src/windows
Loïc Sharma 52e19ef7ec
Refactor vswhere.exe integration (#104133)
`VisualStudio` calls `vswhere.exe` to find Visual Studio installations and determine if they satisfy Flutter's requirements. Previously, `VisualStudio` stored the JSON output from `vswhere.exe` as `Map`s, resulting in duplicated logic to read the JSON output (once to validate values, second to expose values). Also, `VisualStudio` stored two copies of the JSON output (the latest valid installation as well as the latest VS installation).

This change simplifies `VisualStudio` by introducing a new `VswhereDetails`. This type contains the logic to read `vswhere.exe`'s JSON output, and, understand whether an installation is usable by Flutter. In the future, this `VswhereDetails` type will be used to make Flutter doctor resilient to bad UTF-8 output from `vswhere.exe`.

Part of https://github.com/flutter/flutter/issues/102451.
2022-05-20 10:12:25 -07:00
..
application_package.dart Add ability for PrebuiltWindowsApp to accept a zip archive. (#103918) 2022-05-17 11:27:11 -07:00
build_windows.dart add missing trailing commas in list/set/map literals (#102585) 2022-04-27 09:15:35 +02:00
visual_studio_validator.dart Migrate visual_studio_test (#80088) 2021-04-08 19:14:27 -07:00
visual_studio.dart Refactor vswhere.exe integration (#104133) 2022-05-20 10:12:25 -07:00
windows_device.dart [flutter_tools] remove UWP tooling (#102174) 2022-04-26 11:19:07 -07:00
windows_workflow.dart Migrate some workflows and doctor validators to null safety (#79807) 2021-04-05 14:00:36 -07:00