Commit da0a12c6 authored by Adam Barth's avatar Adam Barth

Rename sky_tools to flutter_tools

parent 75f2f1ab
...@@ -7,7 +7,7 @@ export FLUTTER_ROOT=$(dirname $(dirname "${BASH_SOURCE[0]}")) ...@@ -7,7 +7,7 @@ export FLUTTER_ROOT=$(dirname $(dirname "${BASH_SOURCE[0]}"))
FLUTTER_TOOLS_DIR="$FLUTTER_ROOT/packages/flutter_tools" FLUTTER_TOOLS_DIR="$FLUTTER_ROOT/packages/flutter_tools"
SNAPSHOT_PATH="$FLUTTER_ROOT/bin/cache/flutter_tools.snapshot" SNAPSHOT_PATH="$FLUTTER_ROOT/bin/cache/flutter_tools.snapshot"
STAMP_PATH="$FLUTTER_ROOT/bin/cache/flutter_tools.stamp" STAMP_PATH="$FLUTTER_ROOT/bin/cache/flutter_tools.stamp"
SCRIPT_PATH="$FLUTTER_TOOLS_DIR/bin/sky_tools.dart" SCRIPT_PATH="$FLUTTER_TOOLS_DIR/bin/flutter_tools.dart"
# TODO(abarth): We shouldn't require dart to be on the user's path. # TODO(abarth): We shouldn't require dart to be on the user's path.
DART=dart DART=dart
......
...@@ -94,7 +94,7 @@ main(List<String> argv) async { ...@@ -94,7 +94,7 @@ main(List<String> argv) async {
ArgResults args = parser.parse(argv); ArgResults args = parser.parse(argv);
if (args['help']) { if (args['help']) {
print('usage: pub run sky_tools:build_sky_apk <options>'); print('usage: build_sky_apk <options>');
print(''); print('');
print(parser.usage); print(parser.usage);
return; return;
......
...@@ -2,6 +2,6 @@ ...@@ -2,6 +2,6 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
import 'package:sky_tools/executable.dart' as executable; import 'package:flutter_tools/executable.dart' as executable;
main(List<String> args) => executable.main(args); main(List<String> args) => executable.main(args);
...@@ -10,7 +10,7 @@ import 'package:path/path.dart' as path; ...@@ -10,7 +10,7 @@ import 'package:path/path.dart' as path;
import 'artifacts.dart'; import 'artifacts.dart';
import 'build_configuration.dart'; import 'build_configuration.dart';
final Logger _logging = new Logger('sky_tools.application_package'); final Logger _logging = new Logger('flutter_tools.application_package');
abstract class ApplicationPackage { abstract class ApplicationPackage {
/// Path to the actual apk or bundle. /// Path to the actual apk or bundle.
......
...@@ -12,7 +12,7 @@ import 'build_configuration.dart'; ...@@ -12,7 +12,7 @@ import 'build_configuration.dart';
import 'os_utils.dart'; import 'os_utils.dart';
import 'process.dart'; import 'process.dart';
final Logger _logging = new Logger('sky_tools.artifacts'); final Logger _logging = new Logger('flutter_tools.artifacts');
const String _kShellCategory = 'shell'; const String _kShellCategory = 'shell';
const String _kViewerCategory = 'viewer'; const String _kViewerCategory = 'viewer';
......
...@@ -7,7 +7,7 @@ import 'dart:io'; ...@@ -7,7 +7,7 @@ import 'dart:io';
import 'package:logging/logging.dart'; import 'package:logging/logging.dart';
import 'package:path/path.dart' as path; import 'package:path/path.dart' as path;
final Logger _logging = new Logger('sky_tools.build_configuration'); final Logger _logging = new Logger('flutter_tools.build_configuration');
enum BuildType { enum BuildType {
prebuilt, prebuilt,
......
...@@ -9,11 +9,11 @@ import 'package:logging/logging.dart'; ...@@ -9,11 +9,11 @@ import 'package:logging/logging.dart';
import '../artifacts.dart'; import '../artifacts.dart';
final Logger _logging = new Logger('sky_tools.cache'); final Logger _logging = new Logger('flutter_tools.cache');
class CacheCommand extends Command { class CacheCommand extends Command {
final String name = 'cache'; final String name = 'cache';
final String description = 'Manages sky_tools\' cache of binary artifacts.'; final String description = 'Manages Flutter\'s cache of binary artifacts.';
CacheCommand() { CacheCommand() {
addSubcommand(new _ClearCommand()); addSubcommand(new _ClearCommand());
addSubcommand(new _PopulateCommand()); addSubcommand(new _PopulateCommand());
......
...@@ -20,7 +20,7 @@ const String domain = 'domain'; ...@@ -20,7 +20,7 @@ const String domain = 'domain';
/// A domain @command annotation. /// A domain @command annotation.
const String command = 'command'; const String command = 'command';
final Logger _logging = new Logger('sky_tools.daemon'); final Logger _logging = new Logger('flutter_tools.daemon');
// TODO: Create a `device` domain in order to list devices and fire events when // TODO: Create a `device` domain in order to list devices and fire events when
// devices are added or removed. // devices are added or removed.
......
...@@ -14,12 +14,12 @@ import '../artifacts.dart'; ...@@ -14,12 +14,12 @@ import '../artifacts.dart';
import '../build_configuration.dart'; import '../build_configuration.dart';
import '../process.dart'; import '../process.dart';
final Logger _logging = new Logger('sky_tools.flutter_command_runner'); final Logger _logging = new Logger('flutter_tools.flutter_command_runner');
const String kFlutterRootEnvironmentVariableName = 'FLUTTER_ROOT'; // should point to //flutter/ (root of flutter/flutter repo) const String kFlutterRootEnvironmentVariableName = 'FLUTTER_ROOT'; // should point to //flutter/ (root of flutter/flutter repo)
const String kFlutterEngineEnvironmentVariableName = 'FLUTTER_ENGINE'; // should point to //engine/src/ (root of flutter/engine repo) const String kFlutterEngineEnvironmentVariableName = 'FLUTTER_ENGINE'; // should point to //engine/src/ (root of flutter/engine repo)
const String kSnapshotFileName = 'flutter_tools.snapshot'; // in //flutter/bin/cache/ const String kSnapshotFileName = 'flutter_tools.snapshot'; // in //flutter/bin/cache/
const String kFlutterToolsScriptFileName = 'sky_tools.dart'; // in //flutter/packages/flutter_tools/bin/ const String kFlutterToolsScriptFileName = 'flutter_tools.dart'; // in //flutter/packages/flutter_tools/bin/
const String kFlutterEnginePackageName = 'sky_engine'; const String kFlutterEnginePackageName = 'sky_engine';
class FlutterCommandRunner extends CommandRunner { class FlutterCommandRunner extends CommandRunner {
......
...@@ -9,7 +9,7 @@ import 'package:logging/logging.dart'; ...@@ -9,7 +9,7 @@ import 'package:logging/logging.dart';
import '../device.dart'; import '../device.dart';
import 'flutter_command.dart'; import 'flutter_command.dart';
final Logger _logging = new Logger('sky_tools.list'); final Logger _logging = new Logger('flutter_tools.list');
class ListCommand extends FlutterCommand { class ListCommand extends FlutterCommand {
final String name = 'list'; final String name = 'list';
......
...@@ -13,7 +13,7 @@ import '../process.dart'; ...@@ -13,7 +13,7 @@ import '../process.dart';
import 'build.dart'; import 'build.dart';
import 'flutter_command.dart'; import 'flutter_command.dart';
final Logger _logging = new Logger('sky_tools.listen'); final Logger _logging = new Logger('flutter_tools.listen');
class ListenCommand extends FlutterCommand { class ListenCommand extends FlutterCommand {
final String name = 'listen'; final String name = 'listen';
......
...@@ -9,7 +9,7 @@ import 'package:logging/logging.dart'; ...@@ -9,7 +9,7 @@ import 'package:logging/logging.dart';
import '../device.dart'; import '../device.dart';
import 'flutter_command.dart'; import 'flutter_command.dart';
final Logger _logging = new Logger('sky_tools.logs'); final Logger _logging = new Logger('flutter_tools.logs');
class LogsCommand extends FlutterCommand { class LogsCommand extends FlutterCommand {
final String name = 'logs'; final String name = 'logs';
......
...@@ -13,7 +13,7 @@ import '../artifacts.dart'; ...@@ -13,7 +13,7 @@ import '../artifacts.dart';
import '../build_configuration.dart'; import '../build_configuration.dart';
import '../process.dart'; import '../process.dart';
final Logger _logging = new Logger('sky_tools.run_mojo'); final Logger _logging = new Logger('flutter_tools.run_mojo');
class RunMojoCommand extends Command { class RunMojoCommand extends Command {
final String name = 'run_mojo'; final String name = 'run_mojo';
......
...@@ -15,7 +15,7 @@ import 'flutter_command.dart'; ...@@ -15,7 +15,7 @@ import 'flutter_command.dart';
import 'install.dart'; import 'install.dart';
import 'stop.dart'; import 'stop.dart';
final Logger _logging = new Logger('sky_tools.start'); final Logger _logging = new Logger('flutter_tools.start');
class StartCommand extends FlutterCommand { class StartCommand extends FlutterCommand {
final String name = 'start'; final String name = 'start';
......
...@@ -10,7 +10,7 @@ import '../application_package.dart'; ...@@ -10,7 +10,7 @@ import '../application_package.dart';
import '../device.dart'; import '../device.dart';
import 'flutter_command.dart'; import 'flutter_command.dart';
final Logger _logging = new Logger('sky_tools.stop'); final Logger _logging = new Logger('flutter_tools.stop');
class StopCommand extends FlutterCommand { class StopCommand extends FlutterCommand {
final String name = 'stop'; final String name = 'stop';
......
...@@ -15,7 +15,7 @@ import '../process.dart'; ...@@ -15,7 +15,7 @@ import '../process.dart';
import '../test/loader.dart' as loader; import '../test/loader.dart' as loader;
import 'flutter_command.dart'; import 'flutter_command.dart';
final Logger _logging = new Logger('sky_tools.test'); final Logger _logging = new Logger('flutter_tools.test');
class TestCommand extends FlutterCommand { class TestCommand extends FlutterCommand {
String get name => 'test'; String get name => 'test';
......
...@@ -10,7 +10,7 @@ import '../application_package.dart'; ...@@ -10,7 +10,7 @@ import '../application_package.dart';
import '../device.dart'; import '../device.dart';
import 'flutter_command.dart'; import 'flutter_command.dart';
final Logger _logging = new Logger('sky_tools.trace'); final Logger _logging = new Logger('flutter_tools.trace');
class TraceCommand extends FlutterCommand { class TraceCommand extends FlutterCommand {
final String name = 'trace'; final String name = 'trace';
......
...@@ -13,7 +13,7 @@ import 'application_package.dart'; ...@@ -13,7 +13,7 @@ import 'application_package.dart';
import 'build_configuration.dart'; import 'build_configuration.dart';
import 'process.dart'; import 'process.dart';
final Logger _logging = new Logger('sky_tools.device'); final Logger _logging = new Logger('flutter_tools.device');
abstract class Device { abstract class Device {
final String id; final String id;
......
...@@ -8,7 +8,7 @@ import 'package:logging/logging.dart'; ...@@ -8,7 +8,7 @@ import 'package:logging/logging.dart';
final OperatingSystemUtils osUtils = new OperatingSystemUtils._(); final OperatingSystemUtils osUtils = new OperatingSystemUtils._();
final Logger _logging = new Logger('sky_tools.os'); final Logger _logging = new Logger('flutter_tools.os');
abstract class OperatingSystemUtils { abstract class OperatingSystemUtils {
factory OperatingSystemUtils._() { factory OperatingSystemUtils._() {
......
...@@ -8,7 +8,7 @@ import 'dart:io'; ...@@ -8,7 +8,7 @@ import 'dart:io';
import 'package:logging/logging.dart'; import 'package:logging/logging.dart';
final Logger _logging = new Logger('sky_tools.process'); final Logger _logging = new Logger('flutter_tools.process');
/// This runs the command and streams stdout/stderr from the child process to /// This runs the command and streams stdout/stderr from the child process to
/// this process' stdout/stderr. /// this process' stdout/stderr.
......
...@@ -7,8 +7,8 @@ import 'dart:convert'; ...@@ -7,8 +7,8 @@ import 'dart:convert';
import 'dart:io'; import 'dart:io';
import 'package:path/path.dart' as p; import 'package:path/path.dart' as p;
import 'package:sky_tools/src/test/json_socket.dart'; import 'package:flutter_tools/src/test/json_socket.dart';
import 'package:sky_tools/src/test/remote_test.dart'; import 'package:flutter_tools/src/test/remote_test.dart';
import 'package:stack_trace/stack_trace.dart'; import 'package:stack_trace/stack_trace.dart';
import 'package:test/src/backend/group.dart'; import 'package:test/src/backend/group.dart';
import 'package:test/src/backend/metadata.dart'; import 'package:test/src/backend/metadata.dart';
...@@ -79,7 +79,7 @@ Future<RunnerSuite> _loadVMFile(String path, ...@@ -79,7 +79,7 @@ Future<RunnerSuite> _loadVMFile(String path,
import 'dart:convert'; import 'dart:convert';
import 'package:test/src/backend/metadata.dart'; import 'package:test/src/backend/metadata.dart';
import 'package:sky_tools/src/test/remote_listener.dart'; import 'package:flutter_tools/src/test/remote_listener.dart';
import '${p.toUri(p.absolute(path))}' as test; import '${p.toUri(p.absolute(path))}' as test;
......
...@@ -15,7 +15,7 @@ import 'package:test/src/backend/test.dart'; ...@@ -15,7 +15,7 @@ import 'package:test/src/backend/test.dart';
import 'package:test/src/backend/test_platform.dart'; import 'package:test/src/backend/test_platform.dart';
import 'package:test/src/util/remote_exception.dart'; import 'package:test/src/util/remote_exception.dart';
import 'package:sky_tools/src/test/json_socket.dart'; import 'package:flutter_tools/src/test/json_socket.dart';
class RemoteTest extends Test { class RemoteTest extends Test {
RemoteTest(this.name, this.metadata, this._socket, this._index); RemoteTest(this.name, this.metadata, this._socket, this._index);
......
name: sky_tools name: flutter_tools
version: 0.0.37 version: 0.0.38
description: Tools for building Flutter applications description: Tools for building Flutter applications
homepage: http://flutter.io homepage: http://flutter.io
author: Flutter Authors <flutter-dev@googlegroups.com> author: Flutter Authors <flutter-dev@googlegroups.com>
...@@ -31,7 +31,3 @@ dependencies: ...@@ -31,7 +31,3 @@ dependencies:
dev_dependencies: dev_dependencies:
mockito: ^0.10.1 mockito: ^0.10.1
# Add the bin/sky_tools.dart script to the scripts pub installs.
executables:
sky_tools:
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
import 'package:sky_tools/src/device.dart'; import 'package:flutter_tools/src/device.dart';
import 'package:test/test.dart'; import 'package:test/test.dart';
main() => defineTests(); main() => defineTests();
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
import 'dart:async'; import 'dart:async';
import 'package:mockito/mockito.dart'; import 'package:mockito/mockito.dart';
import 'package:sky_tools/src/commands/daemon.dart'; import 'package:flutter_tools/src/commands/daemon.dart';
import 'package:test/test.dart'; import 'package:test/test.dart';
import 'src/mocks.dart'; import 'src/mocks.dart';
......
...@@ -6,9 +6,9 @@ import 'dart:io'; ...@@ -6,9 +6,9 @@ import 'dart:io';
import 'package:args/command_runner.dart'; import 'package:args/command_runner.dart';
import 'package:path/path.dart' as p; import 'package:path/path.dart' as p;
import 'package:sky_tools/src/artifacts.dart'; import 'package:flutter_tools/src/artifacts.dart';
import 'package:sky_tools/src/commands/init.dart'; import 'package:flutter_tools/src/commands/init.dart';
import 'package:sky_tools/src/process.dart'; import 'package:flutter_tools/src/process.dart';
import 'package:test/test.dart'; import 'package:test/test.dart';
main() => defineTests(); main() => defineTests();
...@@ -18,7 +18,7 @@ defineTests() { ...@@ -18,7 +18,7 @@ defineTests() {
Directory temp; Directory temp;
setUp(() { setUp(() {
temp = Directory.systemTemp.createTempSync('sky_tools'); temp = Directory.systemTemp.createTempSync('flutter_tools');
}); });
tearDown(() { tearDown(() {
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
import 'package:args/command_runner.dart'; import 'package:args/command_runner.dart';
import 'package:mockito/mockito.dart'; import 'package:mockito/mockito.dart';
import 'package:sky_tools/src/commands/install.dart'; import 'package:flutter_tools/src/commands/install.dart';
import 'package:test/test.dart'; import 'package:test/test.dart';
import 'src/mocks.dart'; import 'src/mocks.dart';
......
...@@ -6,7 +6,7 @@ import 'dart:io'; ...@@ -6,7 +6,7 @@ import 'dart:io';
import 'package:args/command_runner.dart'; import 'package:args/command_runner.dart';
import 'package:mockito/mockito.dart'; import 'package:mockito/mockito.dart';
import 'package:sky_tools/src/commands/list.dart'; import 'package:flutter_tools/src/commands/list.dart';
import 'package:test/test.dart'; import 'package:test/test.dart';
import 'src/mocks.dart'; import 'src/mocks.dart';
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
import 'package:args/command_runner.dart'; import 'package:args/command_runner.dart';
import 'package:mockito/mockito.dart'; import 'package:mockito/mockito.dart';
import 'package:sky_tools/src/commands/listen.dart'; import 'package:flutter_tools/src/commands/listen.dart';
import 'package:test/test.dart'; import 'package:test/test.dart';
import 'src/mocks.dart'; import 'src/mocks.dart';
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
import 'package:args/command_runner.dart'; import 'package:args/command_runner.dart';
import 'package:mockito/mockito.dart'; import 'package:mockito/mockito.dart';
import 'package:sky_tools/src/commands/logs.dart'; import 'package:flutter_tools/src/commands/logs.dart';
import 'package:test/test.dart'; import 'package:test/test.dart';
import 'src/mocks.dart'; import 'src/mocks.dart';
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
import 'dart:io'; import 'dart:io';
import 'package:sky_tools/src/os_utils.dart'; import 'package:flutter_tools/src/os_utils.dart';
import 'package:test/test.dart'; import 'package:test/test.dart';
import 'package:path/path.dart' as p; import 'package:path/path.dart' as p;
...@@ -15,7 +15,7 @@ defineTests() { ...@@ -15,7 +15,7 @@ defineTests() {
Directory temp; Directory temp;
setUp(() { setUp(() {
temp = Directory.systemTemp.createTempSync('sky_tools'); temp = Directory.systemTemp.createTempSync('flutter_tools');
}); });
tearDown(() { tearDown(() {
......
...@@ -3,11 +3,11 @@ ...@@ -3,11 +3,11 @@
// found in the LICENSE file. // found in the LICENSE file.
import 'package:mockito/mockito.dart'; import 'package:mockito/mockito.dart';
import 'package:sky_tools/src/application_package.dart'; import 'package:flutter_tools/src/application_package.dart';
import 'package:sky_tools/src/build_configuration.dart'; import 'package:flutter_tools/src/build_configuration.dart';
import 'package:sky_tools/src/commands/flutter_command.dart'; import 'package:flutter_tools/src/commands/flutter_command.dart';
import 'package:sky_tools/src/device.dart'; import 'package:flutter_tools/src/device.dart';
import 'package:sky_tools/src/toolchain.dart'; import 'package:flutter_tools/src/toolchain.dart';
class MockApplicationPackageStore extends ApplicationPackageStore { class MockApplicationPackageStore extends ApplicationPackageStore {
MockApplicationPackageStore() : super( MockApplicationPackageStore() : super(
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
import 'package:args/command_runner.dart'; import 'package:args/command_runner.dart';
import 'package:mockito/mockito.dart'; import 'package:mockito/mockito.dart';
import 'package:sky_tools/src/commands/start.dart'; import 'package:flutter_tools/src/commands/start.dart';
import 'package:test/test.dart'; import 'package:test/test.dart';
import 'src/mocks.dart'; import 'src/mocks.dart';
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
import 'package:args/command_runner.dart'; import 'package:args/command_runner.dart';
import 'package:mockito/mockito.dart'; import 'package:mockito/mockito.dart';
import 'package:sky_tools/src/commands/stop.dart'; import 'package:flutter_tools/src/commands/stop.dart';
import 'package:test/test.dart'; import 'package:test/test.dart';
import 'src/mocks.dart'; import 'src/mocks.dart';
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
import 'package:args/command_runner.dart'; import 'package:args/command_runner.dart';
import 'package:mockito/mockito.dart'; import 'package:mockito/mockito.dart';
import 'package:sky_tools/src/commands/trace.dart'; import 'package:flutter_tools/src/commands/trace.dart';
import 'package:test/test.dart'; import 'package:test/test.dart';
import 'src/mocks.dart'; import 'src/mocks.dart';
......
...@@ -8,7 +8,7 @@ import 'dart:io'; ...@@ -8,7 +8,7 @@ import 'dart:io';
Process daemon; Process daemon;
main() async { main() async {
daemon = await Process.start('dart', ['bin/sky_tools.dart', 'daemon']); daemon = await Process.start('dart', ['bin/flutter_tools.dart', 'daemon']);
print('daemon process started, pid: ${daemon.pid}'); print('daemon process started, pid: ${daemon.pid}');
daemon.stdout daemon.stdout
......
...@@ -8,5 +8,6 @@ dependencies: ...@@ -8,5 +8,6 @@ dependencies:
path: ../flutter path: ../flutter
stocks: stocks:
path: ../../examples/stocks path: ../../examples/stocks
sky_tools: # To ensure the version of test doesn't get out of sync.
flutter_tools:
path: ../flutter_tools path: ../flutter_tools
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