Unverified Commit 66175760 authored by Jonah Williams's avatar Jonah Williams Committed by GitHub

[flutter_tools] delete .packages during flutter clean (#73364)

parent c2ce0e68
......@@ -44,6 +44,7 @@ class CleanCommand extends FlutterCommand {
deleteFile(buildDir);
deleteFile(flutterProject.dartTool);
deleteFile(flutterProject.packagesFile);
deleteFile(flutterProject.android.ephemeralDirectory);
......
......@@ -43,6 +43,7 @@ void main() {
projectUnderTest.macos.xcodeWorkspace.createSync(recursive: true);
projectUnderTest.dartTool.createSync(recursive: true);
projectUnderTest.packagesFile.createSync(recursive: true);
projectUnderTest.android.ephemeralDirectory.createSync(recursive: true);
projectUnderTest.ios.ephemeralDirectory.createSync(recursive: true);
......@@ -80,6 +81,7 @@ void main() {
expect(projectUnderTest.flutterPluginsFile.existsSync(), isFalse);
expect(projectUnderTest.flutterPluginsDependenciesFile.existsSync(), isFalse);
expect(projectUnderTest.packagesFile.existsSync(), isFalse);
verify(mockXcodeProjectInterpreter.cleanWorkspace(any, 'Runner', verbose: false)).called(2);
}, overrides: <Type, Generator>{
......
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