change quote to avoid escapes (#50368)
diff --git a/packages/flutter_tools/lib/src/android/gradle.dart b/packages/flutter_tools/lib/src/android/gradle.dart index b48306e..b52a99a 100644 --- a/packages/flutter_tools/lib/src/android/gradle.dart +++ b/packages/flutter_tools/lib/src/android/gradle.dart
@@ -244,7 +244,7 @@ BuildEvent('app-using-android-x').send(); } else if (!usesAndroidX) { BuildEvent('app-not-using-android-x').send(); - globals.printStatus('$warningMark Your app isn\'t using AndroidX.', emphasis: true); + globals.printStatus("$warningMark Your app isn't using AndroidX.", emphasis: true); globals.printStatus( 'To avoid potential build failures, you can quickly migrate your app ' 'by following the steps on https://goo.gl/CP92wY.', @@ -271,7 +271,7 @@ : getAssembleTaskFor(buildInfo); final Status status = globals.logger.startProgress( - 'Running Gradle task \'$assembleTask\'...', + "Running Gradle task '$assembleTask'...", timeout: timeoutConfiguration.slowOperation, multilineOutput: true, ); @@ -508,7 +508,7 @@ final String aarTask = getAarTaskFor(androidBuildInfo.buildInfo); final Status status = globals.logger.startProgress( - 'Running Gradle task \'$aarTask\'...', + "Running Gradle task '$aarTask'...", timeout: timeoutConfiguration.slowOperation, multilineOutput: true, ); @@ -740,7 +740,7 @@ final String pluginName = pluginParts.first; final File buildGradleFile = pluginDirectory.childDirectory('android').childFile('build.gradle'); if (!buildGradleFile.existsSync()) { - globals.printTrace('Skipping plugin $pluginName since it doesn\'t have a android/build.gradle file'); + globals.printTrace("Skipping plugin $pluginName since it doesn't have a android/build.gradle file"); continue; } globals.logger.printStatus('Building plugin $pluginName...'); @@ -865,15 +865,15 @@ ).send(); throwToolExit( 'Gradle build failed to produce an $fileExtension file. ' - 'It\'s likely that this file was generated under ${project.android.buildDirectory.path}, ' - 'but the tool couldn\'t find it.' + "It's likely that this file was generated under ${project.android.buildDirectory.path}, " + "but the tool couldn't find it." ); } void _createSymlink(String targetPath, String linkPath) { final File targetFile = globals.fs.file(targetPath); if (!targetFile.existsSync()) { - throwToolExit('The file $targetPath wasn\'t found in the local engine out directory.'); + throwToolExit("The file $targetPath wasn't found in the local engine out directory."); } final File linkFile = globals.fs.file(linkPath); final Link symlink = linkFile.parent.childLink(linkFile.basename); @@ -889,7 +889,7 @@ String _getLocalArtifactVersion(String pomPath) { final File pomFile = globals.fs.file(pomPath); if (!pomFile.existsSync()) { - throwToolExit('The file $pomPath wasn\'t found in the local engine out directory.'); + throwToolExit("The file $pomPath wasn't found in the local engine out directory."); } xml.XmlDocument document; try {
diff --git a/packages/flutter_tools/lib/src/base/user_messages.dart b/packages/flutter_tools/lib/src/base/user_messages.dart index 3e10806..7d2ab9f 100644 --- a/packages/flutter_tools/lib/src/base/user_messages.dart +++ b/packages/flutter_tools/lib/src/base/user_messages.dart
@@ -136,7 +136,7 @@ String xcodeOutdated(int versionMajor, int versionMinor) => 'Flutter requires a minimum Xcode version of $versionMajor.$versionMinor.0.\n' 'Download the latest version or update via the Mac App Store.'; - String get xcodeEula => 'Xcode end user license agreement not signed; open Xcode or run the command \'sudo xcodebuild -license\'.'; + String get xcodeEula => "Xcode end user license agreement not signed; open Xcode or run the command 'sudo xcodebuild -license'."; String get xcodeMissingSimct => 'Xcode requires additional components to be installed in order to run.\n' 'Launch Xcode and install additional required components when prompted or run:\n' @@ -159,7 +159,7 @@ '$consequence\n' 'To initialize CocoaPods, run:\n' ' pod setup\n' - 'once to finalize CocoaPods\' installation.'; + "once to finalize CocoaPods' installation."; String cocoaPodsMissing(String consequence, String installInstructions) => 'CocoaPods not installed.\n' '$consequence\n' @@ -253,37 +253,37 @@ 'use --local-engine-src-path to specify the path to the root of your flutter/engine repository.'; String runnerNoEngineBuildDirInPath(String engineSourcePath) => 'Unable to detect a Flutter engine build directory in $engineSourcePath.\n' - 'Please ensure that $engineSourcePath is a Flutter engine \'src\' directory and that ' - 'you have compiled the engine in that directory, which should produce an \'out\' directory'; + "Please ensure that $engineSourcePath is a Flutter engine 'src' directory and that " + "you have compiled the engine in that directory, which should produce an 'out' directory"; String get runnerLocalEngineRequired => 'You must specify --local-engine if you are using a locally built engine.'; String runnerNoEngineBuild(String engineBuildPath) => 'No Flutter engine build found at $engineBuildPath.'; String runnerWrongFlutterInstance(String flutterRoot, String currentDir) => - 'Warning: the \'flutter\' tool you are currently running is not the one from the current directory:\n' + "Warning: the 'flutter' tool you are currently running is not the one from the current directory:\n" ' running Flutter : $flutterRoot\n' ' current directory: $currentDir\n' 'This can happen when you have multiple copies of flutter installed. Please check your system path to verify ' - 'that you\'re running the expected version (run \'flutter --version\' to see which flutter is on your path).\n'; + "that you're running the expected version (run 'flutter --version' to see which flutter is on your path).\n"; String runnerRemovedFlutterRepo(String flutterRoot, String flutterPath) => 'Warning! This package referenced a Flutter repository via the .packages file that is ' - 'no longer available. The repository from which the \'flutter\' tool is currently ' + "no longer available. The repository from which the 'flutter' tool is currently " 'executing will be used instead.\n' ' running Flutter tool: $flutterRoot\n' ' previous reference : $flutterPath\n' 'This can happen if you deleted or moved your copy of the Flutter repository, or ' 'if it was on a volume that is no longer mounted or has been mounted at a ' 'different location. Please check your system path to verify that you are running ' - 'the expected version (run \'flutter --version\' to see which flutter is on your path).\n'; + "the expected version (run 'flutter --version' to see which flutter is on your path).\n"; String runnerChangedFlutterRepo(String flutterRoot, String flutterPath) => - 'Warning! The \'flutter\' tool you are currently running is from a different Flutter ' + "Warning! The 'flutter' tool you are currently running is from a different Flutter " 'repository than the one last used by this package. The repository from which the ' - '\'flutter\' tool is currently executing will be used instead.\n' + "'flutter' tool is currently executing will be used instead.\n" ' running Flutter tool: $flutterRoot\n' ' previous reference : $flutterPath\n' 'This can happen when you have multiple copies of flutter installed. Please check ' 'your system path to verify that you are running the expected version (run ' - '\'flutter --version\' to see which flutter is on your path).\n'; + "'flutter --version' to see which flutter is on your path).\n"; String invalidVersionSettingHintMessage(String invalidVersion) => 'Invalid version $invalidVersion found, default value will be used.\n' 'In pubspec.yaml, a valid version should look like: build-name+build-number.\n'
diff --git a/packages/flutter_tools/lib/src/build_runner/resident_web_runner.dart b/packages/flutter_tools/lib/src/build_runner/resident_web_runner.dart index b85e081..8206891 100644 --- a/packages/flutter_tools/lib/src/build_runner/resident_web_runner.dart +++ b/packages/flutter_tools/lib/src/build_runner/resident_web_runner.dart
@@ -184,7 +184,7 @@ TerminalColor.red, ); globals.printStatus( - 'Warning: Flutter\'s support for web development is not stable yet and hasn\'t'); + "Warning: Flutter's support for web development is not stable yet and hasn't"); globals.printStatus('been thoroughly tested in production environments.'); globals.printStatus('For more information see https://flutter.dev/web'); globals.printStatus('');
diff --git a/packages/flutter_tools/lib/src/cache.dart b/packages/flutter_tools/lib/src/cache.dart index 81cb244..cc50882 100644 --- a/packages/flutter_tools/lib/src/cache.dart +++ b/packages/flutter_tools/lib/src/cache.dart
@@ -430,7 +430,7 @@ if (_hostsBlockedInChina.contains(e.address?.host)) { _logger.printError( 'Failed to retrieve Flutter tool dependencies: ${e.message}.\n' - 'If you\'re in China, please see this page: ' + "If you're in China, please see this page: " 'https://flutter.dev/community/china', emphasis: true, );
diff --git a/packages/flutter_tools/lib/src/commands/attach.dart b/packages/flutter_tools/lib/src/commands/attach.dart index 54f10e5..a1f8530 100644 --- a/packages/flutter_tools/lib/src/commands/attach.dart +++ b/packages/flutter_tools/lib/src/commands/attach.dart
@@ -215,7 +215,7 @@ if (device is FuchsiaDevice) { final String module = stringArg('module'); if (module == null) { - throwToolExit('\'--module\' is required for attaching to a Fuchsia device'); + throwToolExit("'--module' is required for attaching to a Fuchsia device"); } usesIpv6 = device.ipv6; FuchsiaIsolateDiscoveryProtocol isolateDiscoveryProtocol;
diff --git a/packages/flutter_tools/lib/src/commands/build_aar.dart b/packages/flutter_tools/lib/src/commands/build_aar.dart index ff620c3..7742e22 100644 --- a/packages/flutter_tools/lib/src/commands/build_aar.dart +++ b/packages/flutter_tools/lib/src/commands/build_aar.dart
@@ -49,7 +49,7 @@ ..addOption( 'output-dir', help: 'The absolute path to the directory where the repository is generated. ' - 'By default, this is \'<current-directory>android/build\'. ', + "By default, this is '<current-directory>android/build'. ", ); }
diff --git a/packages/flutter_tools/lib/src/commands/build_apk.dart b/packages/flutter_tools/lib/src/commands/build_apk.dart index de01a1e..02e113b 100644 --- a/packages/flutter_tools/lib/src/commands/build_apk.dart +++ b/packages/flutter_tools/lib/src/commands/build_apk.dart
@@ -52,8 +52,8 @@ @override final String description = 'Build an Android APK file from your app.\n\n' - 'This command can build debug and release versions of your application. \'debug\' builds support ' - 'debugging and a quick development cycle. \'release\' builds don\'t support debugging and are ' + "This command can build debug and release versions of your application. 'debug' builds support " + "debugging and a quick development cycle. 'release' builds don't support debugging and are " 'suitable for deploying to app stores.'; @override @@ -97,7 +97,7 @@ globals.printStatus('You are building a fat APK that includes binaries for ' '$targetPlatforms.', emphasis: true, color: TerminalColor.green); globals.printStatus('If you are deploying the app to the Play Store, ' - 'it\'s recommended to use app bundles or split the APK to reduce the APK size.', emphasis: true); + "it's recommended to use app bundles or split the APK to reduce the APK size.", emphasis: true); globals.printStatus('To generate an app bundle, run:', emphasis: true, indent: 4); globals.printStatus('flutter build appbundle ' '--target-platform ${targetPlatforms.replaceAll(' ', '')}',indent: 8);
diff --git a/packages/flutter_tools/lib/src/commands/build_appbundle.dart b/packages/flutter_tools/lib/src/commands/build_appbundle.dart index 3db7f86..5fca24d 100644 --- a/packages/flutter_tools/lib/src/commands/build_appbundle.dart +++ b/packages/flutter_tools/lib/src/commands/build_appbundle.dart
@@ -46,8 +46,8 @@ @override final String description = 'Build an Android App Bundle file from your app.\n\n' - 'This command can build debug and release versions of an app bundle for your application. \'debug\' builds support ' - 'debugging and a quick development cycle. \'release\' builds don\'t support debugging and are ' + "This command can build debug and release versions of an app bundle for your application. 'debug' builds support " + "debugging and a quick development cycle. 'release' builds don't support debugging and are " 'suitable for deploying to app stores. \n app bundle improves your app size'; @override
diff --git a/packages/flutter_tools/lib/src/commands/build_bundle.dart b/packages/flutter_tools/lib/src/commands/build_bundle.dart index 24da2e8..9239365 100644 --- a/packages/flutter_tools/lib/src/commands/build_bundle.dart +++ b/packages/flutter_tools/lib/src/commands/build_bundle.dart
@@ -60,7 +60,7 @@ ..addOption('asset-dir', defaultsTo: getAssetBuildDirectory()) ..addFlag('report-licensed-packages', help: 'Whether to report the names of all the packages that are included ' - 'in the application\'s LICENSE file.', + "in the application's LICENSE file.", defaultsTo: false); usesPubOption(); usesTrackWidgetCreation(verboseHelp: verboseHelp);
diff --git a/packages/flutter_tools/lib/src/commands/config.dart b/packages/flutter_tools/lib/src/commands/config.dart index 42b27c5..83f84e9 100644 --- a/packages/flutter_tools/lib/src/commands/config.dart +++ b/packages/flutter_tools/lib/src/commands/config.dart
@@ -54,7 +54,7 @@ 'Configure Flutter settings.\n\n' 'To remove a setting, configure it to an empty string.\n\n' 'The Flutter tool anonymously reports feature usage statistics and basic crash reports to help improve ' - 'Flutter tools over time. See Google\'s privacy policy: https://www.google.com/intl/en/policies/privacy/'; + "Flutter tools over time. See Google's privacy policy: https://www.google.com/intl/en/policies/privacy/"; @override final List<String> aliases = <String>['configure'];
diff --git a/packages/flutter_tools/lib/src/commands/doctor.dart b/packages/flutter_tools/lib/src/commands/doctor.dart index 7c92130..243ef0f 100644 --- a/packages/flutter_tools/lib/src/commands/doctor.dart +++ b/packages/flutter_tools/lib/src/commands/doctor.dart
@@ -13,7 +13,7 @@ argParser.addFlag('android-licenses', defaultsTo: false, negatable: false, - help: 'Run the Android SDK manager tool to accept the SDK\'s licenses.', + help: "Run the Android SDK manager tool to accept the SDK's licenses.", ); argParser.addOption('check-for-remote-artifacts', hide: !verbose,
diff --git a/packages/flutter_tools/lib/src/commands/make_host_app_editable.dart b/packages/flutter_tools/lib/src/commands/make_host_app_editable.dart index a68ec17..2386601 100644 --- a/packages/flutter_tools/lib/src/commands/make_host_app_editable.dart +++ b/packages/flutter_tools/lib/src/commands/make_host_app_editable.dart
@@ -13,12 +13,12 @@ argParser.addFlag( 'ios', - help: 'Whether to make this project\'s iOS app editable.', + help: "Whether to make this project's iOS app editable.", negatable: false, ); argParser.addFlag( 'android', - help: 'Whether ot make this project\'s Android app editable.', + help: "Whether ot make this project's Android app editable.", negatable: false, ); }
diff --git a/packages/flutter_tools/lib/src/commands/precache.dart b/packages/flutter_tools/lib/src/commands/precache.dart index db5a17a..e2d380d 100644 --- a/packages/flutter_tools/lib/src/commands/precache.dart +++ b/packages/flutter_tools/lib/src/commands/precache.dart
@@ -52,7 +52,7 @@ final String name = 'precache'; @override - final String description = 'Populates the Flutter tool\'s cache of binary artifacts.'; + final String description = "Populates the Flutter tool's cache of binary artifacts."; @override bool get shouldUpdateCache => false;
diff --git a/packages/flutter_tools/lib/src/commands/run.dart b/packages/flutter_tools/lib/src/commands/run.dart index c315ebc..f40fc27 100644 --- a/packages/flutter_tools/lib/src/commands/run.dart +++ b/packages/flutter_tools/lib/src/commands/run.dart
@@ -120,7 +120,7 @@ 'or just dump the trace as soon as the application is running. The first frame ' 'is detected by looking for a Timeline event with the name ' '"${Tracing.firstUsefulFrameEventName}". ' - 'By default, the widgets library\'s binding takes care of sending this event. ', + "By default, the widgets library's binding takes care of sending this event. ", ) ..addFlag('use-test-fonts', negatable: true,
diff --git a/packages/flutter_tools/lib/src/commands/screenshot.dart b/packages/flutter_tools/lib/src/commands/screenshot.dart index d126fea..a64d1cc 100644 --- a/packages/flutter_tools/lib/src/commands/screenshot.dart +++ b/packages/flutter_tools/lib/src/commands/screenshot.dart
@@ -41,7 +41,7 @@ help: 'The type of screenshot to retrieve.', allowed: const <String>[_kDeviceType, _kSkiaType, _kRasterizerType], allowedHelp: const <String, String>{ - _kDeviceType: 'Delegate to the device\'s native screenshot capabilities. This ' + _kDeviceType: "Delegate to the device's native screenshot capabilities. This " 'screenshots the entire screen currently being displayed (including content ' 'not rendered by Flutter, like the device status bar).', _kSkiaType: 'Render the Flutter app as a Skia picture. Requires --$_kObservatoryUri',
diff --git a/packages/flutter_tools/lib/src/commands/test.dart b/packages/flutter_tools/lib/src/commands/test.dart index 0a45369..101b142 100644 --- a/packages/flutter_tools/lib/src/commands/test.dart +++ b/packages/flutter_tools/lib/src/commands/test.dart
@@ -139,7 +139,7 @@ throwToolExit( 'Error: No pubspec.yaml file found in the current working directory.\n' 'Run this command from the root of your project. Test files must be ' - 'called *_test.dart and must reside in the package\'s \'test\' ' + "called *_test.dart and must reside in the package's 'test' " 'directory (or one of its subdirectories).'); } if (shouldRunPub) {
diff --git a/packages/flutter_tools/lib/src/commands/update_packages.dart b/packages/flutter_tools/lib/src/commands/update_packages.dart index bf65527..acece5e 100644 --- a/packages/flutter_tools/lib/src/commands/update_packages.dart +++ b/packages/flutter_tools/lib/src/commands/update_packages.dart
@@ -361,7 +361,7 @@ await _downloadCoverageData(); final double seconds = timer.elapsedMilliseconds / 1000.0; - globals.printStatus('\nRan \'pub\' $count time${count == 1 ? "" : "s"} and fetched coverage data in ${seconds.toStringAsFixed(1)}s.'); + globals.printStatus("\nRan 'pub' $count time${count == 1 ? "" : "s"} and fetched coverage data in ${seconds.toStringAsFixed(1)}s."); return FlutterCommandResult.success(); }
diff --git a/packages/flutter_tools/lib/src/commands/upgrade.dart b/packages/flutter_tools/lib/src/commands/upgrade.dart index 7bf8256..705e4e6 100644 --- a/packages/flutter_tools/lib/src/commands/upgrade.dart +++ b/packages/flutter_tools/lib/src/commands/upgrade.dart
@@ -184,8 +184,8 @@ } catch (e) { throwToolExit( 'Unable to upgrade Flutter: no origin repository configured. ' - 'Run \'git remote add origin ' - 'https://github.com/flutter/flutter\' in ${Cache.flutterRoot}', + "Run 'git remote add origin " + "https://github.com/flutter/flutter' in ${Cache.flutterRoot}", ); } }
diff --git a/packages/flutter_tools/lib/src/fuchsia/fuchsia_device.dart b/packages/flutter_tools/lib/src/fuchsia/fuchsia_device.dart index 1b37082..3efe09a 100644 --- a/packages/flutter_tools/lib/src/fuchsia/fuchsia_device.dart +++ b/packages/flutter_tools/lib/src/fuchsia/fuchsia_device.dart
@@ -379,9 +379,9 @@ await fuchsiaDeviceTools.amberCtl.pkgCtlRepoRemove(this, fuchsiaPackageServer); } // Shutdown the package server and delete the package repo; - globals.printTrace('Shutting down the tool\'s package server.'); + globals.printTrace("Shutting down the tool's package server."); fuchsiaPackageServer?.stop(); - globals.printTrace('Removing the tool\'s package repo: at ${packageRepo.path}'); + globals.printTrace("Removing the tool's package repo: at ${packageRepo.path}"); try { packageRepo.deleteSync(recursive: true); } catch (e) {
diff --git a/packages/flutter_tools/lib/src/ios/code_signing.dart b/packages/flutter_tools/lib/src/ios/code_signing.dart index 992a0b7..163b840 100644 --- a/packages/flutter_tools/lib/src/ios/code_signing.dart +++ b/packages/flutter_tools/lib/src/ios/code_signing.dart
@@ -174,7 +174,7 @@ throwOnError: true, )).stdout.trim(); } on ProcessException catch (error) { - globals.printTrace('Couldn\'t find the certificate: $error.'); + globals.printTrace("Couldn't find the certificate: $error."); return null; }
diff --git a/packages/flutter_tools/lib/src/ios/mac.dart b/packages/flutter_tools/lib/src/ios/mac.dart index 7792fbe..c4dcd78 100644 --- a/packages/flutter_tools/lib/src/ios/mac.dart +++ b/packages/flutter_tools/lib/src/ios/mac.dart
@@ -337,7 +337,7 @@ globals.printStatus(buildResult.stderr, indent: 4); } if (buildResult.stdout.isNotEmpty) { - globals.printStatus('Xcode\'s output:\n↳'); + globals.printStatus("Xcode's output:\n↳"); globals.printStatus(buildResult.stdout, indent: 4); } return XcodeBuildResult( @@ -454,7 +454,7 @@ result.xcodeBuildExecution.buildForPhysicalDevice && result.stdout?.contains('BCEROR') == true && // May need updating if Xcode changes its outputs. - result.stdout?.contains('Xcode couldn\'t find a provisioning profile matching') == true) { + result.stdout?.contains("Xcode couldn't find a provisioning profile matching") == true) { globals.printError(noProvisioningProfileInstruction, emphasis: true); return; }
diff --git a/packages/flutter_tools/lib/src/linux/build_linux.dart b/packages/flutter_tools/lib/src/linux/build_linux.dart index c34a4f8..48a9a94 100644 --- a/packages/flutter_tools/lib/src/linux/build_linux.dart +++ b/packages/flutter_tools/lib/src/linux/build_linux.dart
@@ -64,7 +64,7 @@ 'BUILD=$buildFlag', ], trace: true); } on ArgumentError { - throwToolExit('make not found. Run \'flutter doctor\' for more information.'); + throwToolExit("make not found. Run 'flutter doctor' for more information."); } finally { status.cancel(); }
diff --git a/packages/flutter_tools/lib/src/macos/cocoapods.dart b/packages/flutter_tools/lib/src/macos/cocoapods.dart index 7257afa..d748ab1 100644 --- a/packages/flutter_tools/lib/src/macos/cocoapods.dart +++ b/packages/flutter_tools/lib/src/macos/cocoapods.dart
@@ -202,7 +202,7 @@ '$noCocoaPodsConsequence\n' 'To initialize CocoaPods, run:\n' ' pod setup\n' - 'once to finalize CocoaPods\' installation.', + "once to finalize CocoaPods' installation.", emphasis: true, ); return false; @@ -315,7 +315,7 @@ if (globals.logger.isVerbose || result.exitCode != 0) { final String stdout = result.stdout as String; if (stdout.isNotEmpty) { - globals.printStatus('CocoaPods\' output:\n↳'); + globals.printStatus("CocoaPods' output:\n↳"); globals.printStatus(stdout, indent: 4); } final String stderr = result.stderr as String;
diff --git a/packages/flutter_tools/lib/src/macos/xcode.dart b/packages/flutter_tools/lib/src/macos/xcode.dart index 44bd068..81d2656 100644 --- a/packages/flutter_tools/lib/src/macos/xcode.dart +++ b/packages/flutter_tools/lib/src/macos/xcode.dart
@@ -229,7 +229,7 @@ Future<List<dynamic>> _getAllDevices({bool useCache = false}) async { if (!isInstalled) { - _logger.printTrace('Xcode not found. Run \'flutter doctor\' for more information.'); + _logger.printTrace("Xcode not found. Run 'flutter doctor' for more information."); return null; } if (useCache && _cachedListResults != null) {
diff --git a/packages/flutter_tools/lib/src/platform_plugins.dart b/packages/flutter_tools/lib/src/platform_plugins.dart index cfebbd1..cdf31ad 100644 --- a/packages/flutter_tools/lib/src/platform_plugins.dart +++ b/packages/flutter_tools/lib/src/platform_plugins.dart
@@ -113,8 +113,8 @@ if (!mainClassFound) { assert(mainClassCandidates.length <= 2); throwToolExit( - 'The plugin `$name` doesn\'t have a main class defined in ${mainClassCandidates.join(' or ')}. ' - 'This is likely to due to an incorrect `androidPackage: $package` or `mainClass` entry in the plugin\'s pubspec.yaml.\n' + "The plugin `$name` doesn't have a main class defined in ${mainClassCandidates.join(' or ')}. " + "This is likely to due to an incorrect `androidPackage: $package` or `mainClass` entry in the plugin's pubspec.yaml.\n" 'If you are the author of this plugin, fix the `androidPackage` entry or move the main class to any of locations used above. ' 'Otherwise, please contact the author of this plugin and consider using a different plugin in the meanwhile. ' ); @@ -125,7 +125,7 @@ mainClassContent = mainPluginClass.readAsStringSync(); } on FileSystemException { throwToolExit( - 'Couldn\'t read file ${mainPluginClass.path} even though it exists. ' + "Couldn't read file ${mainPluginClass.path} even though it exists. " 'Please verify that this file has read permission and try again.' ); }
diff --git a/packages/flutter_tools/lib/src/runner/flutter_command.dart b/packages/flutter_tools/lib/src/runner/flutter_command.dart index 01b370e..397e438 100644 --- a/packages/flutter_tools/lib/src/runner/flutter_command.dart +++ b/packages/flutter_tools/lib/src/runner/flutter_command.dart
@@ -308,8 +308,8 @@ help: 'An identifier used as an internal version number.\n' 'Each build must have a unique identifier to differentiate it from previous builds.\n' 'It is used to determine whether one build is more recent than another, with higher numbers indicating more recent build.\n' - 'On Android it is used as \'versionCode\'.\n' - 'On Xcode builds it is used as \'CFBundleVersion\'', + "On Android it is used as 'versionCode'.\n" + "On Xcode builds it is used as 'CFBundleVersion'", ); } @@ -317,8 +317,8 @@ argParser.addOption('build-name', help: 'A "x.y.z" string used as the version number shown to users.\n' 'For each new version of your app, you will provide a version number to differentiate it from previous versions.\n' - 'On Android it is used as \'versionName\'.\n' - 'On Xcode builds it is used as \'CFBundleShortVersionString\'', + "On Android it is used as 'versionName'.\n" + "On Xcode builds it is used as 'CFBundleShortVersionString'", valueHelp: 'x.y.z'); } @@ -341,7 +341,7 @@ defaultsTo: null, hide: hide, help: 'Restricts commands to a subset of the available isolates (running instances of Flutter).\n' - 'Normally there\'s only one, but when adding Flutter to a pre-existing app it\'s possible to create multiple.'); + "Normally there's only one, but when adding Flutter to a pre-existing app it's possible to create multiple."); } void addBuildModeFlags({ bool defaultToRelease = true, bool verboseHelp = false, bool excludeDebug = false }) { @@ -374,7 +374,7 @@ 'application. The value of the flag should be a directory where program ' 'symbol files can be stored for later use. These symbol files contain ' 'the information needed to symbolize Dart stack traces. For an app built ' - 'with this flag, the \'flutter symbolize\' command with the right program ' + "with this flag, the 'flutter symbolize' command with the right program " 'symbol file is required to obtain a human readable stack trace.', valueHelp: '/project-name/v1.2.3/', );
diff --git a/packages/flutter_tools/lib/src/runner/flutter_command_runner.dart b/packages/flutter_tools/lib/src/runner/flutter_command_runner.dart index 99455ae..4ce44f3 100644 --- a/packages/flutter_tools/lib/src/runner/flutter_command_runner.dart +++ b/packages/flutter_tools/lib/src/runner/flutter_command_runner.dart
@@ -131,7 +131,7 @@ argParser.addFlag('show-test-device', negatable: false, hide: !verboseHelp, - help: 'List the special \'flutter-tester\' device in device listings. ' + help: "List the special 'flutter-tester' device in device listings. " 'This headless device is used to\ntest Flutter tooling.'); }
diff --git a/packages/flutter_tools/lib/src/test/flutter_platform.dart b/packages/flutter_tools/lib/src/test/flutter_platform.dart index c47af1e..1e78e9e 100644 --- a/packages/flutter_tools/lib/src/test/flutter_platform.dart +++ b/packages/flutter_tools/lib/src/test/flutter_platform.dart
@@ -315,11 +315,11 @@ return await controller.suite; } catch (err) { /// Rethrow a less confusing error if it is a test incompatibility. - if (err.toString().contains('type \'Declarer\' is not a subtype of type \'Declarer\'')) { + if (err.toString().contains("type 'Declarer' is not a subtype of type 'Declarer'")) { throw UnsupportedError('Package incompatibility between flutter and test packages:\n' ' * flutter is incompatible with test <1.4.0.\n' ' * flutter is incompatible with mockito <4.0.0\n' - 'To fix this error, update test to at least \'^1.4.0\' and mockito to at least \'^4.0.0\'\n' + "To fix this error, update test to at least '^1.4.0' and mockito to at least '^4.0.0'\n" ); } // Guess it was a different error. @@ -863,7 +863,7 @@ if (startTimeoutTimer != null) { startTimeoutTimer(); } - } else if (line.startsWith('error: Unable to read Dart source \'package:test/')) { + } else if (line.startsWith("error: Unable to read Dart source 'package:test/")) { globals.printTrace('Shell: $line'); globals.printError('\n\nFailed to load test harness. Are you missing a dependency on flutter_test?\n'); } else if (line.startsWith(observatoryString)) {
diff --git a/packages/flutter_tools/lib/src/test/test_compiler.dart b/packages/flutter_tools/lib/src/test/test_compiler.dart index 42b0cd1..dac2fb7 100644 --- a/packages/flutter_tools/lib/src/test/test_compiler.dart +++ b/packages/flutter_tools/lib/src/test/test_compiler.dart
@@ -171,7 +171,7 @@ if (_suppressOutput) { return; } - if (message.startsWith('Error: Could not resolve the package \'flutter_test\'')) { + if (message.startsWith("Error: Could not resolve the package 'flutter_test'")) { globals.printTrace(message); globals.printError('\n\nFailed to load test harness. Are you missing a dependency on flutter_test?\n', emphasis: emphasis,
diff --git a/packages/flutter_tools/lib/src/vmservice.dart b/packages/flutter_tools/lib/src/vmservice.dart index d5aa84e..7fc4664 100644 --- a/packages/flutter_tools/lib/src/vmservice.dart +++ b/packages/flutter_tools/lib/src/vmservice.dart
@@ -138,7 +138,7 @@ final bool pause = params.asMap['pause'] as bool ?? false; if (isolateId.isEmpty) { - throw rpc.RpcException.invalidParams('Invalid \'isolateId\': $isolateId'); + throw rpc.RpcException.invalidParams("Invalid 'isolateId': $isolateId"); } try { await reloadSources(isolateId, force: force, pause: pause); @@ -173,10 +173,10 @@ final String classId = params['class'].value as String; if (libraryId.isEmpty) { - throw rpc.RpcException.invalidParams('Invalid \'libraryId\': $libraryId'); + throw rpc.RpcException.invalidParams("Invalid 'libraryId': $libraryId"); } if (classId.isEmpty) { - throw rpc.RpcException.invalidParams('Invalid \'classId\': $classId'); + throw rpc.RpcException.invalidParams("Invalid 'classId': $classId"); } globals.printTrace('reloadMethod not yet supported, falling back to hot reload'); @@ -205,7 +205,7 @@ final bool pause = params.asMap['pause'] as bool ?? false; if (pause is! bool) { - throw rpc.RpcException.invalidParams('Invalid \'pause\': $pause'); + throw rpc.RpcException.invalidParams("Invalid 'pause': $pause"); } try { @@ -243,12 +243,12 @@ final String isolateId = params['isolateId'].asString; if (isolateId is! String || isolateId.isEmpty) { throw rpc.RpcException.invalidParams( - 'Invalid \'isolateId\': $isolateId'); + "Invalid 'isolateId': $isolateId"); } final String expression = params['expression'].asString; if (expression is! String || expression.isEmpty) { throw rpc.RpcException.invalidParams( - 'Invalid \'expression\': $expression'); + "Invalid 'expression': $expression"); } final List<String> definitions = List<String>.from(params['definitions'].asList);