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
432ffde5
Commit
432ffde5
authored
Jun 16, 2017
by
xster
Committed by
GitHub
Jun 16, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove usages of booted (#10741)
parent
4b957bf0
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
simulators.dart
packages/flutter_tools/lib/src/ios/simulators.dart
+6
-6
simulators_test.dart
packages/flutter_tools/test/ios/simulators_test.dart
+1
-1
No files found.
packages/flutter_tools/lib/src/ios/simulators.dart
View file @
432ffde5
...
...
@@ -228,12 +228,12 @@ class SimControl {
bool
_isAnyConnected
()
=>
getConnectedDevices
().
isNotEmpty
;
Future
<
bool
>
isInstalled
(
String
appId
)
{
Future
<
bool
>
isInstalled
(
String
deviceId
,
String
appId
)
{
return
exitsHappyAsync
(<
String
>[
_xcrunPath
,
'simctl'
,
'get_app_container'
,
'booted'
,
deviceId
,
appId
,
]);
}
...
...
@@ -253,8 +253,8 @@ class SimControl {
return
runCheckedAsync
(
args
);
}
Future
<
Null
>
takeScreenshot
(
String
outputPath
)
{
return
runCheckedAsync
(<
String
>[
_xcrunPath
,
'simctl'
,
'io'
,
'booted'
,
'screenshot'
,
outputPath
]);
Future
<
Null
>
takeScreenshot
(
String
deviceId
,
String
outputPath
)
{
return
runCheckedAsync
(<
String
>[
_xcrunPath
,
'simctl'
,
'io'
,
deviceId
,
'screenshot'
,
outputPath
]);
}
}
...
...
@@ -340,7 +340,7 @@ class IOSSimulator extends Device {
@override
Future
<
bool
>
isAppInstalled
(
ApplicationPackage
app
)
{
return
SimControl
.
instance
.
isInstalled
(
app
.
id
);
return
SimControl
.
instance
.
isInstalled
(
id
,
app
.
id
);
}
@override
...
...
@@ -596,7 +596,7 @@ class IOSSimulator extends Device {
@override
Future
<
Null
>
takeScreenshot
(
File
outputFile
)
{
return
SimControl
.
instance
.
takeScreenshot
(
outputFile
.
path
);
return
SimControl
.
instance
.
takeScreenshot
(
id
,
outputFile
.
path
);
}
}
...
...
packages/flutter_tools/test/ios/simulators_test.dart
View file @
432ffde5
...
...
@@ -161,7 +161,7 @@ void main() {
'/usr/bin/xcrun'
,
'simctl'
,
'io'
,
'
booted
'
,
'
x
'
,
'screenshot'
,
fs
.
path
.
join
(
'some'
,
'path'
,
'to'
,
'screenshot.png'
),
],
...
...
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