Flutter preview device (#135639)

Fixes https://github.com/flutter/flutter/issues/130277

This PR does two things:

1. introduce a hidden `flutter build _preview` command, that will build a debug windows desktop app and copy it into the SDK's binary cache. This command is only intended to be run during packaging.
2. introduce a new device type, called `PreviewDevice`, which relies on the prebuilt desktop debug app from step 1, copies it into the target app's assets build folder, and then hot reloads their dart code into it.
This commit is contained in:
Christopher Fujino
2023-10-17 17:27:54 -07:00
committed by GitHub
parent 492b6f7ddf
commit 8a31a3a284
24 changed files with 1514 additions and 705 deletions

View File

@@ -173,9 +173,11 @@ List<FlutterCommand> generateCommands({
fileSystem: globals.fs,
),
BuildCommand(
artifacts: globals.artifacts!,
fileSystem: globals.fs,
buildSystem: globals.buildSystem,
osUtils: globals.os,
processUtils: globals.processUtils,
verboseHelp: verboseHelp,
androidSdk: globals.androidSdk,
logger: globals.logger,