move hack flag to common (#34754)

This commit is contained in:
Jonah Williams
2019-06-19 16:29:11 -07:00
committed by GitHub
parent 830fb38640
commit d7e53d4816
4 changed files with 7 additions and 7 deletions

View File

@@ -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

View File

@@ -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();

View File

@@ -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';

View File

@@ -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';