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
bf25b31a
Commit
bf25b31a
authored
Dec 12, 2016
by
Devon Carew
Committed by
GitHub
Dec 12, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
some updates to the launch verbiage (#7236)
parent
cffe4812
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
6 deletions
+18
-6
daemon.dart
packages/flutter_tools/lib/src/commands/daemon.dart
+3
-0
run.dart
packages/flutter_tools/lib/src/commands/run.dart
+8
-3
hot.dart
packages/flutter_tools/lib/src/hot.dart
+2
-1
run.dart
packages/flutter_tools/lib/src/run.dart
+5
-2
No files found.
packages/flutter_tools/lib/src/commands/daemon.dart
View file @
bf25b31a
...
...
@@ -337,6 +337,9 @@ class AppDomain extends Domain {
throw
'unhandle build mode:
$buildMode
'
;
}
if
(
device
.
isLocalEmulator
&&
!
isEmulatorBuildMode
(
buildMode
))
throw
'
${toTitleCase(getModeName(buildMode))}
mode is not supported for emulators.'
;
// We change the current working directory for the duration of the `start` command.
Directory
cwd
=
Directory
.
current
;
Directory
.
current
=
new
Directory
(
projectDirectory
);
...
...
packages/flutter_tools/lib/src/commands/run.dart
View file @
bf25b31a
...
...
@@ -171,9 +171,14 @@ class RunCommand extends RunCommandBase {
if
(
argResults
[
'machine'
])
{
Daemon
daemon
=
new
Daemon
(
stdinCommandStream
,
stdoutCommandResponse
,
notifyingLogger:
new
NotifyingLogger
(),
logToStdout:
true
);
AppInstance
app
=
daemon
.
appDomain
.
startApp
(
device
,
Directory
.
current
.
path
,
targetFile
,
route
,
getBuildMode
(),
argResults
[
'start-paused'
],
hotMode
);
AppInstance
app
;
try
{
app
=
daemon
.
appDomain
.
startApp
(
device
,
Directory
.
current
.
path
,
targetFile
,
route
,
getBuildMode
(),
argResults
[
'start-paused'
],
hotMode
);
}
catch
(
error
)
{
throwToolExit
(
error
.
toString
());
}
int
result
=
await
app
.
runner
.
waitForAppToFinish
();
if
(
result
!=
0
)
throwToolExit
(
null
,
exitCode:
result
);
...
...
packages/flutter_tools/lib/src/hot.dart
View file @
bf25b31a
...
...
@@ -196,7 +196,8 @@ class HotRunner extends ResidentRunner {
await
startEchoingDeviceLog
(
_package
);
printStatus
(
'Launching
${getDisplayPath(_mainPath)}
on
${device.name}
...'
);
String
modeName
=
getModeName
(
debuggingOptions
.
buildMode
);
printStatus
(
'Launching
${getDisplayPath(_mainPath)}
on
${device.name}
in
$modeName
mode...'
);
// Start the application.
Future
<
LaunchResult
>
futureResult
=
device
.
startApp
(
...
...
packages/flutter_tools/lib/src/run.dart
View file @
bf25b31a
...
...
@@ -10,6 +10,7 @@ import 'package:stack_trace/stack_trace.dart';
import
'application_package.dart'
;
import
'base/utils.dart'
;
import
'build_info.dart'
;
import
'commands/trace.dart'
;
import
'device.dart'
;
import
'globals.dart'
;
...
...
@@ -94,11 +95,13 @@ class RunAndStayResident extends ResidentRunner {
platformArgs
=
<
String
,
dynamic
>{
'trace-startup'
:
traceStartup
};
await
startEchoingDeviceLog
(
_package
);
String
modeName
=
getModeName
(
debuggingOptions
.
buildMode
);
if
(
_mainPath
==
null
)
{
assert
(
prebuiltMode
);
printStatus
(
'
Running
${_package.displayName}
on
${device.name}
'
);
printStatus
(
'
Launching
${_package.displayName}
on
${device.name}
in
$modeName
mode...
'
);
}
else
{
printStatus
(
'
Running
${getDisplayPath(_mainPath)}
on
${device.name}
...'
);
printStatus
(
'
Launching
${getDisplayPath(_mainPath)}
on
${device.name}
in
$modeName
mode
...'
);
}
_result
=
await
device
.
startApp
(
...
...
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