Migrate flutter_tools to use package:platform (#7642)

This commit is contained in:
Todd Volkert
2017-01-25 16:06:41 -08:00
committed by GitHub
parent 600c75cb11
commit 417c2f25fc
29 changed files with 123 additions and 83 deletions

View File

@@ -15,6 +15,7 @@ import 'src/base/file_system.dart';
import 'src/base/io.dart';
import 'src/base/logger.dart';
import 'src/base/os.dart';
import 'src/base/platform.dart';
import 'src/base/process.dart';
import 'src/base/utils.dart';
import 'src/cache.dart';
@@ -100,6 +101,7 @@ Future<Null> main(List<String> args) async {
// in those locations as well to see if you need a similar update there.
// Seed these context entries first since others depend on them
context.putIfAbsent(Platform, () => new LocalPlatform());
context.putIfAbsent(FileSystem, () => new LocalFileSystem());
context.putIfAbsent(ProcessManager, () => new LocalProcessManager());
context.putIfAbsent(Logger, () => new StdoutLogger());