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
a6777b2a
Commit
a6777b2a
authored
Jan 23, 2017
by
Devon Carew
Committed by
GitHub
Jan 23, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove flutter setup (#7596)
parent
44f957d6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
69 deletions
+0
-69
executable.dart
packages/flutter_tools/lib/executable.dart
+0
-2
setup.dart
packages/flutter_tools/lib/src/commands/setup.dart
+0
-67
No files found.
packages/flutter_tools/lib/executable.dart
View file @
a6777b2a
...
...
@@ -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<Null> main(List<String> 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
())
...
...
packages/flutter_tools/lib/src/commands/setup.dart
deleted
100644 → 0
View file @
44f957d6
// 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
<
Null
>
runCommand
()
async
{
printStatus
(
'Running Flutter setup...'
);
// setup brew on mac
if
(
os
.
isMacOS
)
{
printStatus
(
'
\n
Checking brew:'
);
if
(
os
.
which
(
'brew'
)
==
null
)
{
printError
(
'homebrew is not installed; please install at http://brew.sh/.'
);
}
else
{
printStatus
(
'brew is installed.'
);
await
runCommandAndStreamOutput
(<
String
>[
'brew'
,
'install'
,
'ideviceinstaller'
]);
await
runCommandAndStreamOutput
(<
String
>[
'brew'
,
'install'
,
'ios-deploy'
]);
}
}
// run doctor
printStatus
(
'
\n
Flutter doctor:'
);
bool
goodInstall
=
await
doctor
.
diagnose
();
// Validate that flutter is available on the path.
if
(
os
.
which
(
'flutter'
)
==
null
)
{
printError
(
'
\n
The 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
(
'
\n
The flutter command is available on the path.'
);
}
if
(!
goodInstall
)
throwToolExit
(
null
);
printStatus
(
'
\n
Flutter setup complete!'
);
}
}
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