Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
104fcf8d
Commit
104fcf8d
authored
Feb 03, 2017
by
Chris Bracken
Committed by
GitHub
Feb 03, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix typos, quote consistency (#7856)
parent
2ec02c33
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
16 deletions
+16
-16
simulators.dart
packages/flutter_tools/lib/src/ios/simulators.dart
+16
-16
No files found.
packages/flutter_tools/lib/src/ios/simulators.dart
View file @
104fcf8d
...
...
@@ -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 arti
tific
al check on older simulators where arm64
// target
ted applications cannot be run (even though the
//
Flutter
runner on the simulator is completely different).
// There is an arti
fici
al check on older simulators where arm64
// target
ed 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
<
String
>
args
=
<
String
>[
"--enable-dart-profiling"
];
List
<
String
>
args
=
<
String
>[
'--enable-dart-profiling'
];
if
(!
prebuiltApplication
)
{
args
.
addAll
(<
String
>[
"--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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment