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
ce9fcb02
Commit
ce9fcb02
authored
Aug 05, 2016
by
Devon Carew
Committed by
GitHub
Aug 05, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove the resident cli option (#5263)
parent
84cbefe2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
34 deletions
+14
-34
run.dart
packages/flutter_tools/lib/src/commands/run.dart
+14
-34
No files found.
packages/flutter_tools/lib/src/commands/run.dart
View file @
ce9fcb02
...
...
@@ -12,7 +12,7 @@ import '../build_info.dart';
import
'../cache.dart'
;
import
'../device.dart'
;
import
'../globals.dart'
;
import
'../hot.dart'
as
hot
;
import
'../hot.dart'
;
import
'../observatory.dart'
;
import
'../resident_runner.dart'
;
import
'../run.dart'
;
...
...
@@ -57,15 +57,11 @@ class RunCommand extends RunCommandBase {
help:
'Listen to the given port for a debug connection (defaults to
$kDefaultObservatoryPort
).'
);
usesPubOption
();
argParser
.
addFlag
(
'resident'
,
defaultsTo:
true
,
help:
'Don
\'
t terminate the
\'
flutter run
\'
process after starting the application.'
);
// Option to enable hot reloading.
argParser
.
addFlag
(
'hot'
,
negatable:
false
,
defaultsTo:
false
,
help:
'Run with support for hot reloading.
Requires resident.
'
);
help:
'Run with support for hot reloading.'
);
// Hidden option to enable a benchmarking mode. This will run the given
// application, measure the startup time and the app restart time, write the
...
...
@@ -133,39 +129,23 @@ class RunCommand extends RunCommandBase {
}
}
if
(
argResults
[
'resident'
])
{
if
(
argResults
[
'hot'
])
{
hot
.
HotRunner
runner
=
new
hot
.
HotRunner
(
deviceForCommand
,
target:
targetFile
,
debuggingOptions:
options
);
return
runner
.
run
(
route:
route
);
}
else
{
RunAndStayResident
runner
=
new
RunAndStayResident
(
deviceForCommand
,
target:
targetFile
,
debuggingOptions:
options
);
return
runner
.
run
(
traceStartup:
traceStartup
,
benchmark:
argResults
[
'benchmark'
],
route:
route
);
}
if
(
argResults
[
'hot'
])
{
HotRunner
runner
=
new
HotRunner
(
deviceForCommand
,
target:
targetFile
,
debuggingOptions:
options
);
return
runner
.
run
(
route:
route
);
}
else
{
// TODO(devoncarew): Remove this path and support the `--no-resident` option
// using the `RunAndStayResident` class.
return
startApp
(
RunAndStayResident
runner
=
new
RunAndStayResident
(
deviceForCommand
,
target:
targetFile
,
stop:
argResults
[
'full-restart'
],
install:
true
,
debuggingOptions:
options
,
debuggingOptions:
options
);
return
runner
.
run
(
traceStartup:
traceStartup
,
benchmark:
argResults
[
'benchmark'
],
route:
route
,
buildMode:
getBuildMode
()
route:
route
);
}
}
...
...
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