Pass device-user in machine mode (#107747)

This commit is contained in:
Lau Ching Jun
2022-07-15 15:18:05 -07:00
committed by GitHub
parent 1a4f9635eb
commit 2cfeb0d1e1
3 changed files with 37 additions and 0 deletions

View File

@@ -499,6 +499,7 @@ class AppDomain extends Domain {
bool multidexEnabled = false,
String? isolateFilter,
bool machine = true,
String? userIdentifier,
}) async {
if (!await device.supportsRuntimeMode(options.buildInfo.mode)) {
throw Exception(
@@ -517,6 +518,7 @@ class AppDomain extends Domain {
target: target,
buildInfo: options.buildInfo,
platform: globals.platform,
userIdentifier: userIdentifier,
);
ResidentRunner runner;

View File

@@ -605,6 +605,7 @@ class RunCommand extends RunCommandBase {
dillOutputPath: stringArgDeprecated('output-dill'),
ipv6: ipv6 ?? false,
multidexEnabled: boolArgDeprecated('multidex'),
userIdentifier: userIdentifier,
);
} on Exception catch (error) {
throwToolExit(error.toString());