forked from firka/flutter
add missing trailing commas in list/set/map literals (#102585)
This commit is contained in:
committed by
GitHub
parent
0b80f08cf0
commit
07f1c20474
@@ -380,7 +380,7 @@ class AndroidDevice extends Device {
|
||||
'packages',
|
||||
if (userIdentifier != null)
|
||||
...<String>['--user', userIdentifier],
|
||||
app.id
|
||||
app.id,
|
||||
]);
|
||||
return LineSplitter.split(listOut.stdout).contains('package:${app.id}');
|
||||
} on Exception catch (error) {
|
||||
@@ -447,7 +447,7 @@ class AndroidDevice extends Device {
|
||||
'-r',
|
||||
if (userIdentifier != null)
|
||||
...<String>['--user', userIdentifier],
|
||||
app.applicationPackage.path
|
||||
app.applicationPackage.path,
|
||||
]));
|
||||
status.stop();
|
||||
// Some versions of adb exit with exit code 0 even on failure :(
|
||||
@@ -494,7 +494,8 @@ class AndroidDevice extends Device {
|
||||
'uninstall',
|
||||
if (userIdentifier != null)
|
||||
...<String>['--user', userIdentifier],
|
||||
app.id]),
|
||||
app.id,
|
||||
]),
|
||||
throwOnError: true,
|
||||
);
|
||||
uninstallOut = uninstallResult.stdout;
|
||||
@@ -805,7 +806,7 @@ class AndroidDevice extends Device {
|
||||
RunResult output;
|
||||
try {
|
||||
output = await runAdbCheckedAsync(<String>[
|
||||
'shell', '-x', 'logcat', '-v', 'time', '-t', '1'
|
||||
'shell', '-x', 'logcat', '-v', 'time', '-t', '1',
|
||||
]);
|
||||
} on Exception catch (error) {
|
||||
_logger.printError('Failed to extract the most recent timestamp from the Android log: $error.');
|
||||
|
||||
@@ -158,7 +158,7 @@ class AndroidEmulator extends Emulator {
|
||||
'-avd',
|
||||
id,
|
||||
if (coldBoot)
|
||||
'-no-snapshot-load'
|
||||
'-no-snapshot-load',
|
||||
];
|
||||
final Process process = await _processUtils.start(command);
|
||||
|
||||
|
||||
@@ -589,7 +589,7 @@ class AndroidGradleBuilder implements AndroidBuilder {
|
||||
'-Pflutter-root=$flutterRoot',
|
||||
'-Poutput-dir=${outputDirectory.path}',
|
||||
'-Pis-plugin=${manifest.isPlugin}',
|
||||
'-PbuildNumber=$buildNumber'
|
||||
'-PbuildNumber=$buildNumber',
|
||||
];
|
||||
if (_logger.isVerbose) {
|
||||
command.add('--full-stacktrace');
|
||||
@@ -851,15 +851,15 @@ Iterable<String> listApkPaths(
|
||||
<String>[
|
||||
'app',
|
||||
getNameForAndroidArch(androidArch),
|
||||
...apkPartialName
|
||||
].join('-')
|
||||
...apkPartialName,
|
||||
].join('-'),
|
||||
];
|
||||
}
|
||||
return <String>[
|
||||
<String>[
|
||||
'app',
|
||||
...apkPartialName,
|
||||
].join('-')
|
||||
].join('-'),
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user