From a6777b2a6052ca6d4267636dbbce350b6e0fdd34 Mon Sep 17 00:00:00 2001 From: Devon Carew Date: Mon, 23 Jan 2017 15:22:16 -0800 Subject: [PATCH] remove flutter setup (#7596) --- packages/flutter_tools/lib/executable.dart | 2 - .../flutter_tools/lib/src/commands/setup.dart | 67 ------------------- 2 files changed, 69 deletions(-) delete mode 100644 packages/flutter_tools/lib/src/commands/setup.dart diff --git a/packages/flutter_tools/lib/executable.dart b/packages/flutter_tools/lib/executable.dart index 4283b336c7..7eeb9111d4 100644 --- a/packages/flutter_tools/lib/executable.dart +++ b/packages/flutter_tools/lib/executable.dart @@ -30,7 +30,6 @@ import 'src/commands/drive.dart'; import 'src/commands/format.dart'; import 'src/commands/install.dart'; import 'src/commands/logs.dart'; -import 'src/commands/setup.dart'; import 'src/commands/packages.dart'; import 'src/commands/precache.dart'; import 'src/commands/run.dart'; @@ -84,7 +83,6 @@ Future main(List args) async { ..addCommand(new PrecacheCommand()) ..addCommand(new RunCommand(verboseHelp: verboseHelp)) ..addCommand(new ScreenshotCommand()) - ..addCommand(new SetupCommand(hidden: !verboseHelp)) ..addCommand(new StopCommand()) ..addCommand(new TestCommand()) ..addCommand(new TraceCommand()) diff --git a/packages/flutter_tools/lib/src/commands/setup.dart b/packages/flutter_tools/lib/src/commands/setup.dart deleted file mode 100644 index afc2326ed1..0000000000 --- a/packages/flutter_tools/lib/src/commands/setup.dart +++ /dev/null @@ -1,67 +0,0 @@ -// Copyright 2016 The Chromium Authors. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -import 'dart:async'; - -import '../base/common.dart'; -import '../base/os.dart'; -import '../base/process.dart'; -import '../doctor.dart'; -import '../globals.dart'; -import '../runner/flutter_command.dart'; - -/// This setup command will install dependencies necessary for Flutter development. -/// -/// This is a hidden command, and is currently designed to work in a custom kiosk -/// environment, but may be generalized in the future. -class SetupCommand extends FlutterCommand { - SetupCommand({ this.hidden: false }); - - @override - final String name = 'setup'; - - @override - final String description = 'Setup a machine to support Flutter development.'; - - @override - final bool hidden; - - @override - Future runCommand() async { - printStatus('Running Flutter setup...'); - - // setup brew on mac - if (os.isMacOS) { - printStatus('\nChecking brew:'); - - if (os.which('brew') == null) { - printError('homebrew is not installed; please install at http://brew.sh/.'); - } else { - printStatus('brew is installed.'); - - await runCommandAndStreamOutput(['brew', 'install', 'ideviceinstaller']); - await runCommandAndStreamOutput(['brew', 'install', 'ios-deploy']); - } - } - - // run doctor - printStatus('\nFlutter doctor:'); - bool goodInstall = await doctor.diagnose(); - - // Validate that flutter is available on the path. - if (os.which('flutter') == null) { - printError( - '\nThe flutter command is not available on the path.\n' - 'Please set up your PATH environment variable to point to the flutter/bin directory.' - ); - } else { - printStatus('\nThe flutter command is available on the path.'); - } - - if (!goodInstall) - throwToolExit(null); - - printStatus('\nFlutter setup complete!'); - } -}