remove unnecessary string interpolations (#49352)
This commit is contained in:
committed by
Flutter GitHub Bot
parent
5d532e42fb
commit
92cbaa3efe
@@ -68,7 +68,7 @@ class AndroidStudio implements Comparable<AndroidStudio> {
|
||||
}
|
||||
final String presetPluginsPath = pathsSelectorValue == null
|
||||
? null
|
||||
: globals.fs.path.join(homeDirPath, 'Library', 'Application Support', '$pathsSelectorValue');
|
||||
: globals.fs.path.join(homeDirPath, 'Library', 'Application Support', pathsSelectorValue);
|
||||
return AndroidStudio(studioPath, version: version, presetPluginsPath: presetPluginsPath);
|
||||
}
|
||||
|
||||
|
||||
@@ -455,7 +455,7 @@ class DebugAssetServer extends AssetServer {
|
||||
flutterProject.dartTool.path,
|
||||
'build',
|
||||
'flutter_web',
|
||||
'${flutterProject.manifest.appName}',
|
||||
flutterProject.manifest.appName,
|
||||
'lib',
|
||||
'${targetBaseName}_web_entrypoint.dart.js.tar.gz',
|
||||
));
|
||||
|
||||
@@ -555,7 +555,7 @@ abstract class CachedArtifact extends ArtifactSet {
|
||||
|
||||
/// Download an archive from the given [url] and unzip it to [location].
|
||||
Future<void> _downloadArchive(String message, Uri url, Directory location, bool verifier(File f), void extractor(File f, Directory d)) {
|
||||
return _withDownloadFile('${flattenNameSubdirs(url)}', (File tempFile) async {
|
||||
return _withDownloadFile(flattenNameSubdirs(url), (File tempFile) async {
|
||||
if (!verifier(tempFile)) {
|
||||
final Status status = globals.logger.startProgress(message, timeout: timeoutConfiguration.slowOperation);
|
||||
try {
|
||||
|
||||
@@ -367,7 +367,7 @@ class UpdatePackagesCommand extends FlutterCommand {
|
||||
for (_DependencyLink path in paths) {
|
||||
final StringBuffer buf = StringBuffer();
|
||||
while (path != null) {
|
||||
buf.write('${path.to}');
|
||||
buf.write(path.to);
|
||||
path = path.from;
|
||||
if (path != null) {
|
||||
buf.write(' <- ');
|
||||
|
||||
@@ -609,8 +609,9 @@ class DefaultResidentCompiler implements ResidentCompiler {
|
||||
_server.stdin.writeln('recompile $mainUri$inputKey');
|
||||
globals.printTrace('<- recompile $mainUri$inputKey');
|
||||
for (final Uri fileUri in request.invalidatedFiles) {
|
||||
_server.stdin.writeln(_mapFileUri(fileUri.toString(), packageUriMapper));
|
||||
globals.printTrace('${_mapFileUri(fileUri.toString(), packageUriMapper)}');
|
||||
final String message = _mapFileUri(fileUri.toString(), packageUriMapper);
|
||||
_server.stdin.writeln(message);
|
||||
globals.printTrace(message);
|
||||
}
|
||||
_server.stdin.writeln(inputKey);
|
||||
globals.printTrace('<- $inputKey');
|
||||
|
||||
@@ -468,7 +468,7 @@ abstract class Device {
|
||||
table.add(<String>[
|
||||
device.name,
|
||||
device.id,
|
||||
'${getNameForTargetPlatform(targetPlatform)}',
|
||||
getNameForTargetPlatform(targetPlatform),
|
||||
'${await device.sdkNameAndVersion}$supportIndicator',
|
||||
]);
|
||||
}
|
||||
|
||||
@@ -50,7 +50,7 @@ class IOSDeploy {
|
||||
'--justlaunch',
|
||||
if (launchArguments.isNotEmpty) ...<String>[
|
||||
'--args',
|
||||
'${launchArguments.join(" ")}',
|
||||
launchArguments.join(' '),
|
||||
],
|
||||
];
|
||||
|
||||
|
||||
@@ -473,7 +473,7 @@ Future<XcodeBuildResult> buildXcodeProject({
|
||||
initialBuildStatus = null;
|
||||
globals.printStatus(
|
||||
'Xcode build done.'.padRight(kDefaultStatusPadding + 1)
|
||||
+ '${getElapsedAsSeconds(sw.elapsed).padLeft(5)}',
|
||||
+ getElapsedAsSeconds(sw.elapsed).padLeft(5),
|
||||
);
|
||||
flutterUsage.sendTiming('build', 'xcode-ios', Duration(milliseconds: sw.elapsedMilliseconds));
|
||||
|
||||
|
||||
@@ -79,7 +79,7 @@ Future<void> buildMacOS({
|
||||
'xcrun',
|
||||
'xcodebuild',
|
||||
'-workspace', flutterProject.macos.xcodeWorkspace.path,
|
||||
'-configuration', '$configuration',
|
||||
'-configuration', configuration,
|
||||
'-scheme', 'Runner',
|
||||
'-derivedDataPath', flutterBuildDir.absolute.path,
|
||||
'OBJROOT=${globals.fs.path.join(flutterBuildDir.absolute.path, 'Build', 'Intermediates.noindex')}',
|
||||
|
||||
@@ -139,9 +139,9 @@ class BuildEvent extends UsageEvent {
|
||||
// category
|
||||
'build',
|
||||
// parameter
|
||||
FlutterCommand.current == null ?
|
||||
'unspecified' :
|
||||
'${FlutterCommand.current.name}',
|
||||
FlutterCommand.current == null
|
||||
? 'unspecified'
|
||||
: FlutterCommand.current.name,
|
||||
label: label,
|
||||
);
|
||||
|
||||
|
||||
@@ -186,6 +186,6 @@ class TestCompiler {
|
||||
_suppressOutput = true;
|
||||
return;
|
||||
}
|
||||
globals.printError('$message');
|
||||
globals.printError(message);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user