change quote to avoid escapes (#50368)
This commit is contained in:
committed by
GitHub
parent
fd1062debd
commit
f15c887c63
@@ -157,7 +157,7 @@ final ArgParser _argParser = ArgParser()
|
||||
..addFlag(
|
||||
'list',
|
||||
abbr: 'l',
|
||||
help: 'Don\'t actually run the tasks, but list out the tasks that would\n'
|
||||
help: "Don't actually run the tasks, but list out the tasks that would\n"
|
||||
'have been run, in the order they would have run.',
|
||||
)
|
||||
..addOption(
|
||||
|
||||
@@ -53,7 +53,7 @@ Future<void> main() async {
|
||||
);
|
||||
});
|
||||
|
||||
const String newFileContent = 'include \':app\'';
|
||||
const String newFileContent = "include ':app'";
|
||||
|
||||
final File settingsGradle = File(path.join(projectDir.path, 'android', 'settings.gradle'));
|
||||
final File newSettingsGradle = File(path.join(projectDir.path, 'android', 'settings_aar.gradle'));
|
||||
|
||||
@@ -37,7 +37,7 @@ Future<void> main() async {
|
||||
);
|
||||
});
|
||||
|
||||
section('Delete plugin\'s Android folder');
|
||||
section("Delete plugin's Android folder");
|
||||
|
||||
final File androidFolder = File(path.join(
|
||||
projectDir.path,
|
||||
|
||||
@@ -127,7 +127,7 @@ Future<void> main() async {
|
||||
|
||||
final String sharedLibrary = path.join(androidArmSnapshotPath, 'app.so');
|
||||
if (!File(sharedLibrary).existsSync()) {
|
||||
throw TaskResult.failure('Shared library doesn\'t exist');
|
||||
throw TaskResult.failure("Shared library doesn't exist");
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
@@ -212,7 +212,7 @@ Future<void> main() async {
|
||||
android:name="flutterProjectType"
|
||||
android:value="module" />''')
|
||||
) {
|
||||
return TaskResult.failure('Debug host APK doesn\'t contain metadata: flutterProjectType = module ');
|
||||
return TaskResult.failure("Debug host APK doesn't contain metadata: flutterProjectType = module ");
|
||||
}
|
||||
|
||||
final String analyticsOutput = analyticsOutputFile.readAsStringSync();
|
||||
@@ -270,7 +270,7 @@ Future<void> main() async {
|
||||
android:name="flutterProjectType"
|
||||
android:value="module" />''')
|
||||
) {
|
||||
return TaskResult.failure('Release host APK doesn\'t contain metadata: flutterProjectType = module ');
|
||||
return TaskResult.failure("Release host APK doesn't contain metadata: flutterProjectType = module ");
|
||||
}
|
||||
return TaskResult.success(null);
|
||||
} on TaskResult catch (taskResult) {
|
||||
|
||||
@@ -170,7 +170,7 @@ public class DummyPluginAClass {
|
||||
File(path.join(exampleApp.path, '.flutter-plugins-dependencies'));
|
||||
|
||||
if (!flutterPluginsDependenciesFile.existsSync()) {
|
||||
return TaskResult.failure('${flutterPluginsDependenciesFile.path} doesn\'t exist');
|
||||
return TaskResult.failure("${flutterPluginsDependenciesFile.path} doesn't exist");
|
||||
}
|
||||
|
||||
final String flutterPluginsDependenciesFileContent = flutterPluginsDependenciesFile.readAsStringSync();
|
||||
|
||||
@@ -78,8 +78,8 @@ void main() {
|
||||
|
||||
_findNextMatcherInList(
|
||||
stdout,
|
||||
(String line) => line.startsWith('Running Gradle task \'assembleRelease\'...'),
|
||||
'Running Gradle task \'assembleRelease\'...',
|
||||
(String line) => line.startsWith("Running Gradle task 'assembleRelease'..."),
|
||||
"Running Gradle task 'assembleRelease'...",
|
||||
);
|
||||
|
||||
_findNextMatcherInList(
|
||||
|
||||
@@ -225,7 +225,7 @@ class FuchsiaDeviceDiscovery implements DeviceDiscovery {
|
||||
String get _devFinder {
|
||||
final String devFinder = path.join(getArtifactPath(), 'fuchsia', 'tools', 'device-finder');
|
||||
if (!File(devFinder).existsSync()) {
|
||||
throw FileSystemException('Couldn\'t find device-finder at location $devFinder');
|
||||
throw FileSystemException("Couldn't find device-finder at location $devFinder");
|
||||
}
|
||||
return devFinder;
|
||||
}
|
||||
|
||||
@@ -193,7 +193,7 @@ Future<void> checkApkContainsClasses(File apk, List<String> classes) async {
|
||||
final ApkExtractor extractor = ApkExtractor(apk);
|
||||
for (final String className in classes) {
|
||||
if (!(await extractor.containsClass(className))) {
|
||||
throw Exception('APK doesn\'t contain class `$className`.');
|
||||
throw Exception("APK doesn't contain class `$className`.");
|
||||
}
|
||||
}
|
||||
extractor.dispose();
|
||||
|
||||
Reference in New Issue
Block a user