pass through preview-dart-2, strong, ipv6 in daemon mode (#14200)
* pass through preview-dart-2, strong, ipv6 in daemon mode * ws change to kick the windows bot
This commit is contained in:
@@ -347,12 +347,16 @@ class AppDomain extends Domain {
|
||||
Device device, String projectDirectory, String target, String route,
|
||||
DebuggingOptions options, bool enableHotReload, {
|
||||
String applicationBinary,
|
||||
bool previewDart2: false,
|
||||
bool strongMode: false,
|
||||
String projectRootPath,
|
||||
String packagesFilePath,
|
||||
String projectAssets,
|
||||
bool ipv6: false,
|
||||
}) async {
|
||||
if (await device.isLocalEmulator && !options.buildInfo.supportsEmulator)
|
||||
if (await device.isLocalEmulator && !options.buildInfo.supportsEmulator) {
|
||||
throw '${toTitleCase(options.buildInfo.modeName)} mode is not supported for emulators.';
|
||||
}
|
||||
|
||||
// We change the current working directory for the duration of the `start` command.
|
||||
final Directory cwd = fs.currentDirectory;
|
||||
@@ -369,9 +373,12 @@ class AppDomain extends Domain {
|
||||
debuggingOptions: options,
|
||||
usesTerminalUI: false,
|
||||
applicationBinary: applicationBinary,
|
||||
previewDart2: previewDart2,
|
||||
strongMode: strongMode,
|
||||
projectRootPath: projectRootPath,
|
||||
packagesFilePath: packagesFilePath,
|
||||
projectAssets: projectAssets,
|
||||
ipv6: ipv6,
|
||||
hostIsIde: true,
|
||||
);
|
||||
} else {
|
||||
@@ -381,6 +388,9 @@ class AppDomain extends Domain {
|
||||
debuggingOptions: options,
|
||||
usesTerminalUI: false,
|
||||
applicationBinary: applicationBinary,
|
||||
previewDart2: previewDart2,
|
||||
strongMode: strongMode,
|
||||
ipv6: ipv6,
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -257,9 +257,12 @@ class RunCommand extends RunCommandBase {
|
||||
devices.first, fs.currentDirectory.path, targetFile, route,
|
||||
_createDebuggingOptions(), hotMode,
|
||||
applicationBinary: argResults['use-application-binary'],
|
||||
previewDart2: argResults['preview-dart-2'],
|
||||
strongMode: argResults['strong'],
|
||||
projectRootPath: argResults['project-root'],
|
||||
packagesFilePath: argResults['packages'],
|
||||
projectAssets: argResults['project-assets']
|
||||
projectAssets: argResults['project-assets'],
|
||||
ipv6: ipv6,
|
||||
);
|
||||
} catch (error) {
|
||||
throwToolExit(error.toString());
|
||||
|
||||
Reference in New Issue
Block a user