mirror of
https://github.com/flutter/packages.git
synced 2025-07-09 21:55:28 +08:00
[flutter_plugin_tools] Simplify filesystem usage (#4014)
- Replaces most explicit use of `fileSystem` with path construction using the `child*` utility methods - Removes explicit passing of a filesystem to the commands; we're already passing a `Directory` for the root where the tool operates, and we should never be using a different filesystem than that directory's filesystem, so passing it was both redundant, and a potential source of test bugs.
This commit is contained in:
script/tool
lib/src
analyze_command.dartbuild_examples_command.dartcommon.dartcreate_all_plugins_app_command.dartdrive_examples_command.dartfirebase_test_lab_command.dartformat_command.dartjava_test_command.dartlicense_check_command.dartlint_podspecs_command.dartlist_command.dartmain.dartpublish_check_command.dartpublish_plugin_command.dartpubspec_check_command.darttest_command.dartversion_check_command.dartxctest_command.dart
test
analyze_command_test.dartbuild_examples_command_test.dartcommon_test.dartcreate_all_plugins_app_command_test.dartdrive_examples_command_test.dartfirebase_test_lab_test.dartjava_test_command_test.dartlicense_check_command_test.dartlint_podspecs_command_test.dartlist_command_test.dartpublish_check_command_test.dartpublish_plugin_command_test.dartpubspec_check_command_test.darttest_command_test.dartversion_check_test.dartxctest_command_test.dart
@ -30,7 +30,6 @@ void main() {
|
||||
|
||||
final CreateAllPluginsAppCommand command = CreateAllPluginsAppCommand(
|
||||
packagesDir,
|
||||
fileSystem,
|
||||
pluginsRoot: testRoot,
|
||||
);
|
||||
appDir = command.appDirectory;
|
||||
|
Reference in New Issue
Block a user