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
d7e53d48
Unverified
Commit
d7e53d48
authored
Jun 19, 2019
by
Jonah Williams
Committed by
GitHub
Jun 19, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
move hack flag to common (#34754)
parent
830fb386
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
7 deletions
+7
-7
common.dart
packages/flutter_tools/lib/src/base/common.dart
+4
-0
daemon.dart
packages/flutter_tools/lib/src/commands/daemon.dart
+1
-5
desktop.dart
packages/flutter_tools/lib/src/desktop.dart
+1
-1
workflow.dart
packages/flutter_tools/lib/src/web/workflow.dart
+1
-1
No files found.
packages/flutter_tools/lib/src/base/common.dart
View file @
d7e53d48
...
...
@@ -5,6 +5,10 @@
import
'file_system.dart'
;
import
'platform.dart'
;
/// Whether the tool started from the daemon, as opposed to the command line.
// TODO(jonahwilliams): remove once IDE updates have rolled.
bool
isRunningFromDaemon
=
false
;
/// Return the absolute path of the user's home directory
String
get
homeDirPath
{
String
path
=
platform
.
isWindows
...
...
packages/flutter_tools/lib/src/commands/daemon.dart
View file @
d7e53d48
...
...
@@ -28,10 +28,6 @@ import '../vmservice.dart';
const
String
protocolVersion
=
'0.5.2'
;
/// Whether the tool started from the daemon, as opposed to the command line.
bool
get
isRunningFromDaemon
=>
_isRunningFromDaemon
;
bool
_isRunningFromDaemon
=
false
;
/// A server process command. This command will start up a long-lived server.
/// It reads JSON-RPC based commands from stdin, executes them, and returns
/// JSON-RPC based responses and events to stdout.
...
...
@@ -53,7 +49,7 @@ class DaemonCommand extends FlutterCommand {
@override
Future
<
FlutterCommandResult
>
runCommand
()
async
{
printStatus
(
'Starting device daemon...'
);
_
isRunningFromDaemon
=
true
;
isRunningFromDaemon
=
true
;
final
NotifyingLogger
notifyingLogger
=
NotifyingLogger
();
...
...
packages/flutter_tools/lib/src/desktop.dart
View file @
d7e53d48
...
...
@@ -6,10 +6,10 @@ import 'dart:async';
import
'package:meta/meta.dart'
;
import
'base/common.dart'
;
import
'base/io.dart'
;
import
'base/platform.dart'
;
import
'base/process_manager.dart'
;
import
'commands/daemon.dart'
show
isRunningFromDaemon
;
import
'convert.dart'
;
import
'device.dart'
;
import
'version.dart'
;
...
...
packages/flutter_tools/lib/src/web/workflow.dart
View file @
d7e53d48
...
...
@@ -4,10 +4,10 @@
import
'package:meta/meta.dart'
;
import
'../base/common.dart'
;
import
'../base/context.dart'
;
import
'../base/platform.dart'
;
import
'../base/process_manager.dart'
;
import
'../commands/daemon.dart'
show
isRunningFromDaemon
;
import
'../doctor.dart'
;
import
'../version.dart'
;
import
'chrome.dart'
;
...
...
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