Commit 104fcf8d authored by Chris Bracken's avatar Chris Bracken Committed by GitHub

Fix typos, quote consistency (#7856)

parent 2ec02c33
...@@ -361,7 +361,7 @@ class IOSSimulator extends Device { ...@@ -361,7 +361,7 @@ class IOSSimulator extends Device {
@override @override
bool isSupported() { bool isSupported() {
if (!p.platform.isMacOS) { if (!p.platform.isMacOS) {
_supportMessage = "Not supported on a non Mac host"; _supportMessage = 'Not supported on a non Mac host';
return false; return false;
} }
...@@ -371,14 +371,14 @@ class IOSSimulator extends Device { ...@@ -371,14 +371,14 @@ class IOSSimulator extends Device {
RegExp blacklist = new RegExp(r'Apple (TV|Watch)', caseSensitive: false); RegExp blacklist = new RegExp(r'Apple (TV|Watch)', caseSensitive: false);
if (blacklist.hasMatch(name)) { 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; return false;
} }
// Step 2: Check if the device must be rejected because of its version. // Step 2: Check if the device must be rejected because of its version.
// There is an artitifical check on older simulators where arm64 // There is an artificial check on older simulators where arm64
// targetted applications cannot be run (even though the // targeted applications cannot be run (even though the Flutter
// Flutter runner on the simulator is completely different). // runner on the simulator is completely different).
RegExp versionExp = new RegExp(r'iPhone ([0-9])+'); RegExp versionExp = new RegExp(r'iPhone ([0-9])+');
Match match = versionExp.firstMatch(name); Match match = versionExp.firstMatch(name);
...@@ -395,7 +395,7 @@ class IOSSimulator extends Device { ...@@ -395,7 +395,7 @@ class IOSSimulator extends Device {
if (name.contains('iPhone 5s')) if (name.contains('iPhone 5s'))
return true; 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; return false;
} }
...@@ -404,9 +404,9 @@ class IOSSimulator extends Device { ...@@ -404,9 +404,9 @@ class IOSSimulator extends Device {
@override @override
String supportMessage() { String supportMessage() {
if (isSupported()) if (isSupported())
return "Supported"; return 'Supported';
return _supportMessage != null ? _supportMessage : "Unknown"; return _supportMessage != null ? _supportMessage : 'Unknown';
} }
@override @override
...@@ -435,26 +435,26 @@ class IOSSimulator extends Device { ...@@ -435,26 +435,26 @@ class IOSSimulator extends Device {
} }
// Prepare launch arguments. // Prepare launch arguments.
List<String> args = <String>["--enable-dart-profiling"]; List<String> args = <String>['--enable-dart-profiling'];
if (!prebuiltApplication) { if (!prebuiltApplication) {
args.addAll(<String>[ args.addAll(<String>[
"--flx=${path.absolute(path.join(getBuildDirectory(), 'app.flx'))}", '--flx=${path.absolute(path.join(getBuildDirectory(), 'app.flx'))}',
"--dart-main=${path.absolute(mainPath)}", '--dart-main=${path.absolute(mainPath)}',
"--packages=${path.absolute('.packages')}", '--packages=${path.absolute('.packages')}',
]); ]);
} }
if (debuggingOptions.debuggingEnabled) { if (debuggingOptions.debuggingEnabled) {
if (debuggingOptions.buildMode == BuildMode.debug) if (debuggingOptions.buildMode == BuildMode.debug)
args.add("--enable-checked-mode"); args.add('--enable-checked-mode');
if (debuggingOptions.startPaused) if (debuggingOptions.startPaused)
args.add("--start-paused"); args.add('--start-paused');
int observatoryPort = await debuggingOptions.findBestObservatoryPort(); int observatoryPort = await debuggingOptions.findBestObservatoryPort();
args.add("--observatory-port=$observatoryPort"); args.add('--observatory-port=$observatoryPort');
int diagnosticPort = await debuggingOptions.findBestDiagnosticPort(); int diagnosticPort = await debuggingOptions.findBestDiagnosticPort();
args.add("--diagnostic-port=$diagnosticPort"); args.add('--diagnostic-port=$diagnosticPort');
} }
ProtocolDiscovery observatoryDiscovery; ProtocolDiscovery observatoryDiscovery;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment