forked from firka/flutter
pass through --web-port in release mode too (#40465)
This commit is contained in:
@@ -288,6 +288,8 @@ class RunCommand extends RunCommandBase {
|
||||
return DebuggingOptions.disabled(
|
||||
buildInfo,
|
||||
initializePlatform: argResults['web-initialize-platform'],
|
||||
hostname: featureFlags.isWebEnabled ? argResults['web-hostname'] : '',
|
||||
port: featureFlags.isWebEnabled ? argResults['web-port'] : '',
|
||||
);
|
||||
} else {
|
||||
return DebuggingOptions.enabled(
|
||||
|
||||
@@ -494,7 +494,7 @@ class DebuggingOptions {
|
||||
this.port,
|
||||
}) : debuggingEnabled = true;
|
||||
|
||||
DebuggingOptions.disabled(this.buildInfo, { this.initializePlatform = true })
|
||||
DebuggingOptions.disabled(this.buildInfo, { this.initializePlatform = true, this.port, this.hostname })
|
||||
: debuggingEnabled = false,
|
||||
useTestFonts = false,
|
||||
startPaused = false,
|
||||
@@ -506,8 +506,6 @@ class DebuggingOptions {
|
||||
traceSystrace = false,
|
||||
dumpSkpOnShaderCompilation = false,
|
||||
verboseSystemLogs = false,
|
||||
hostname = null,
|
||||
port = null,
|
||||
observatoryPort = null;
|
||||
|
||||
final bool debuggingEnabled;
|
||||
|
||||
Reference in New Issue
Block a user