From 104fcf8d086fad248770dd73749a9bc2cae76ad1 Mon Sep 17 00:00:00 2001 From: Chris Bracken Date: Fri, 3 Feb 2017 11:50:49 -0800 Subject: [PATCH] Fix typos, quote consistency (#7856) --- .../flutter_tools/lib/src/ios/simulators.dart | 32 +++++++++---------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/packages/flutter_tools/lib/src/ios/simulators.dart b/packages/flutter_tools/lib/src/ios/simulators.dart index eb83e78a6a..d07479a950 100644 --- a/packages/flutter_tools/lib/src/ios/simulators.dart +++ b/packages/flutter_tools/lib/src/ios/simulators.dart @@ -361,7 +361,7 @@ class IOSSimulator extends Device { @override bool isSupported() { if (!p.platform.isMacOS) { - _supportMessage = "Not supported on a non Mac host"; + _supportMessage = 'Not supported on a non Mac host'; return false; } @@ -371,14 +371,14 @@ class IOSSimulator extends Device { RegExp blacklist = new RegExp(r'Apple (TV|Watch)', caseSensitive: false); if (blacklist.hasMatch(name)) { - _supportMessage = "Flutter does not support either the Apple TV or Watch. Choose an iPhone 5s or above."; + _supportMessage = 'Flutter does not support either the Apple TV or Watch. Choose an iPhone 5s or above.'; return false; } // Step 2: Check if the device must be rejected because of its version. - // There is an artitifical check on older simulators where arm64 - // targetted applications cannot be run (even though the - // Flutter runner on the simulator is completely different). + // There is an artificial check on older simulators where arm64 + // targeted applications cannot be run (even though the Flutter + // runner on the simulator is completely different). RegExp versionExp = new RegExp(r'iPhone ([0-9])+'); Match match = versionExp.firstMatch(name); @@ -395,7 +395,7 @@ class IOSSimulator extends Device { if (name.contains('iPhone 5s')) return true; - _supportMessage = "The simulator version is too old. Choose an iPhone 5s or above."; + _supportMessage = 'The simulator version is too old. Choose an iPhone 5s or above.'; return false; } @@ -404,9 +404,9 @@ class IOSSimulator extends Device { @override String supportMessage() { if (isSupported()) - return "Supported"; + return 'Supported'; - return _supportMessage != null ? _supportMessage : "Unknown"; + return _supportMessage != null ? _supportMessage : 'Unknown'; } @override @@ -435,26 +435,26 @@ class IOSSimulator extends Device { } // Prepare launch arguments. - List args = ["--enable-dart-profiling"]; + List args = ['--enable-dart-profiling']; if (!prebuiltApplication) { args.addAll([ - "--flx=${path.absolute(path.join(getBuildDirectory(), 'app.flx'))}", - "--dart-main=${path.absolute(mainPath)}", - "--packages=${path.absolute('.packages')}", + '--flx=${path.absolute(path.join(getBuildDirectory(), 'app.flx'))}', + '--dart-main=${path.absolute(mainPath)}', + '--packages=${path.absolute('.packages')}', ]); } if (debuggingOptions.debuggingEnabled) { if (debuggingOptions.buildMode == BuildMode.debug) - args.add("--enable-checked-mode"); + args.add('--enable-checked-mode'); if (debuggingOptions.startPaused) - args.add("--start-paused"); + args.add('--start-paused'); int observatoryPort = await debuggingOptions.findBestObservatoryPort(); - args.add("--observatory-port=$observatoryPort"); + args.add('--observatory-port=$observatoryPort'); int diagnosticPort = await debuggingOptions.findBestDiagnosticPort(); - args.add("--diagnostic-port=$diagnosticPort"); + args.add('--diagnostic-port=$diagnosticPort'); } ProtocolDiscovery observatoryDiscovery;