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
e6da16bb
Commit
e6da16bb
authored
Nov 01, 2016
by
Devon Carew
Committed by
GitHub
Nov 01, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Handle release stop (#6493)
* implement app.stop() for release runs * update comment
parent
0206a915
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
run.dart
packages/flutter_tools/lib/src/run.dart
+8
-4
No files found.
packages/flutter_tools/lib/src/run.dart
View file @
e6da16bb
...
...
@@ -11,14 +11,13 @@ import 'package:stack_trace/stack_trace.dart';
import
'application_package.dart'
;
import
'base/logger.dart'
;
import
'base/utils.dart'
;
import
'build_info.dart'
;
import
'commands/build_apk.dart'
;
import
'commands/install.dart'
;
import
'commands/trace.dart'
;
import
'device.dart'
;
import
'globals.dart'
;
import
'vmservice.dart'
;
import
'resident_runner.dart'
;
import
'vmservice.dart'
;
class
RunAndStayResident
extends
ResidentRunner
{
RunAndStayResident
(
...
...
@@ -199,8 +198,6 @@ class RunAndStayResident extends ResidentRunner {
}
printTrace
(
'Application running.'
);
if
(
debuggingOptions
.
buildMode
==
BuildMode
.
release
)
return
0
;
if
(
vmService
!=
null
)
{
await
vmService
.
vm
.
refreshViews
();
...
...
@@ -281,6 +278,13 @@ class RunAndStayResident extends ResidentRunner {
printStatus
(
'For a more detailed help message, press "h" or F1. To quit, press "q", F10, or Ctrl-C.'
);
}
}
@override
Future
<
Null
>
preStop
()
async
{
// If we're running in release mode, stop the app using the device logic.
if
(
vmService
==
null
)
await
device
.
stopApp
(
_package
);
}
}
void
writeRunBenchmarkFile
(
Stopwatch
startTime
,
[
Stopwatch
restartTime
])
{
...
...
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