Migrate flutter_tools to use package:platform (#7642)
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user