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
f9876cba
Commit
f9876cba
authored
Aug 15, 2016
by
Jason Simmons
Committed by
GitHub
Aug 15, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Wait for stopApp to complete before proceeding with the app install/run flow (#5412)
parent
6e62df42
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
10 deletions
+2
-10
run.dart
packages/flutter_tools/lib/src/commands/run.dart
+1
-5
run.dart
packages/flutter_tools/lib/src/run.dart
+1
-5
No files found.
packages/flutter_tools/lib/src/commands/run.dart
View file @
f9876cba
...
...
@@ -237,14 +237,10 @@ Future<int> startApp(
if
(
stop
)
{
if
(
package
!=
null
)
{
printTrace
(
"Stopping app '
${package.name}
' on
${device.name}
."
);
// We don't wait for the stop command to complete.
device
.
stopApp
(
package
);
await
device
.
stopApp
(
package
);
}
}
// Allow any stop commands from above to start work.
await
new
Future
<
Duration
>.
delayed
(
Duration
.
ZERO
);
// TODO(devoncarew): This fails for ios devices - we haven't built yet.
if
(
install
&&
device
is
AndroidDevice
)
{
printStatus
(
'Installing
$package
to
$device
...'
);
...
...
packages/flutter_tools/lib/src/run.dart
View file @
f9876cba
...
...
@@ -137,13 +137,9 @@ class RunAndStayResident extends ResidentRunner {
// TODO(devoncarew): Move this into the device.startApp() impls.
if
(
_package
!=
null
)
{
printTrace
(
"Stopping app '
${_package.name}
' on
${device.name}
."
);
// We don't wait for the stop command to complete.
device
.
stopApp
(
_package
);
await
device
.
stopApp
(
_package
);
}
// Allow any stop commands from above to start work.
await
new
Future
<
Duration
>.
delayed
(
Duration
.
ZERO
);
// TODO(devoncarew): This fails for ios devices - we haven't built yet.
if
(
device
is
AndroidDevice
)
{
printTrace
(
'Running install command.'
);
...
...
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