Unverified Commit d7e53d48 authored by Jonah Williams's avatar Jonah Williams Committed by GitHub

move hack flag to common (#34754)

parent 830fb386
...@@ -5,6 +5,10 @@ ...@@ -5,6 +5,10 @@
import 'file_system.dart'; import 'file_system.dart';
import 'platform.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 /// Return the absolute path of the user's home directory
String get homeDirPath { String get homeDirPath {
String path = platform.isWindows String path = platform.isWindows
......
...@@ -28,10 +28,6 @@ import '../vmservice.dart'; ...@@ -28,10 +28,6 @@ import '../vmservice.dart';
const String protocolVersion = '0.5.2'; 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. /// 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 /// It reads JSON-RPC based commands from stdin, executes them, and returns
/// JSON-RPC based responses and events to stdout. /// JSON-RPC based responses and events to stdout.
...@@ -53,7 +49,7 @@ class DaemonCommand extends FlutterCommand { ...@@ -53,7 +49,7 @@ class DaemonCommand extends FlutterCommand {
@override @override
Future<FlutterCommandResult> runCommand() async { Future<FlutterCommandResult> runCommand() async {
printStatus('Starting device daemon...'); printStatus('Starting device daemon...');
_isRunningFromDaemon = true; isRunningFromDaemon = true;
final NotifyingLogger notifyingLogger = NotifyingLogger(); final NotifyingLogger notifyingLogger = NotifyingLogger();
......
...@@ -6,10 +6,10 @@ import 'dart:async'; ...@@ -6,10 +6,10 @@ import 'dart:async';
import 'package:meta/meta.dart'; import 'package:meta/meta.dart';
import 'base/common.dart';
import 'base/io.dart'; import 'base/io.dart';
import 'base/platform.dart'; import 'base/platform.dart';
import 'base/process_manager.dart'; import 'base/process_manager.dart';
import 'commands/daemon.dart' show isRunningFromDaemon;
import 'convert.dart'; import 'convert.dart';
import 'device.dart'; import 'device.dart';
import 'version.dart'; import 'version.dart';
......
...@@ -4,10 +4,10 @@ ...@@ -4,10 +4,10 @@
import 'package:meta/meta.dart'; import 'package:meta/meta.dart';
import '../base/common.dart';
import '../base/context.dart'; import '../base/context.dart';
import '../base/platform.dart'; import '../base/platform.dart';
import '../base/process_manager.dart'; import '../base/process_manager.dart';
import '../commands/daemon.dart' show isRunningFromDaemon;
import '../doctor.dart'; import '../doctor.dart';
import '../version.dart'; import '../version.dart';
import 'chrome.dart'; import 'chrome.dart';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment