Unverified Commit 617c57bc authored by Jenn Magder's avatar Jenn Magder Committed by GitHub

Flutter clean Flutter.podspec (#72306)

parent 30718a13
...@@ -52,6 +52,7 @@ class CleanCommand extends FlutterCommand { ...@@ -52,6 +52,7 @@ class CleanCommand extends FlutterCommand {
deleteFile(flutterProject.ios.generatedEnvironmentVariableExportScript); deleteFile(flutterProject.ios.generatedEnvironmentVariableExportScript);
deleteFile(flutterProject.ios.deprecatedCompiledDartFramework); deleteFile(flutterProject.ios.deprecatedCompiledDartFramework);
deleteFile(flutterProject.ios.deprecatedProjectFlutterFramework); deleteFile(flutterProject.ios.deprecatedProjectFlutterFramework);
deleteFile(flutterProject.ios.flutterPodspec);
deleteFile(flutterProject.linux.ephemeralDirectory); deleteFile(flutterProject.linux.ephemeralDirectory);
deleteFile(flutterProject.macos.ephemeralDirectory); deleteFile(flutterProject.macos.ephemeralDirectory);
......
...@@ -692,6 +692,11 @@ class IosProject extends FlutterProjectPlatform implements XcodeBasedProject { ...@@ -692,6 +692,11 @@ class IosProject extends FlutterProjectPlatform implements XcodeBasedProject {
.childDirectory('Flutter') .childDirectory('Flutter')
.childDirectory('Flutter.framework'); .childDirectory('Flutter.framework');
/// Used only for "flutter clean" to remove old references.
File get flutterPodspec => _flutterLibRoot
.childDirectory('Flutter')
.childFile('Flutter.podspec');
Directory get pluginRegistrantHost { Directory get pluginRegistrantHost {
return isModule return isModule
? _flutterLibRoot ? _flutterLibRoot
......
...@@ -50,6 +50,7 @@ void main() { ...@@ -50,6 +50,7 @@ void main() {
projectUnderTest.ios.generatedEnvironmentVariableExportScript.createSync(recursive: true); projectUnderTest.ios.generatedEnvironmentVariableExportScript.createSync(recursive: true);
projectUnderTest.ios.deprecatedCompiledDartFramework.createSync(recursive: true); projectUnderTest.ios.deprecatedCompiledDartFramework.createSync(recursive: true);
projectUnderTest.ios.deprecatedProjectFlutterFramework.createSync(recursive: true); projectUnderTest.ios.deprecatedProjectFlutterFramework.createSync(recursive: true);
projectUnderTest.ios.flutterPodspec.createSync(recursive: true);
projectUnderTest.linux.ephemeralDirectory.createSync(recursive: true); projectUnderTest.linux.ephemeralDirectory.createSync(recursive: true);
projectUnderTest.macos.ephemeralDirectory.createSync(recursive: true); projectUnderTest.macos.ephemeralDirectory.createSync(recursive: true);
...@@ -71,6 +72,7 @@ void main() { ...@@ -71,6 +72,7 @@ void main() {
expect(projectUnderTest.ios.generatedEnvironmentVariableExportScript.existsSync(), isFalse); expect(projectUnderTest.ios.generatedEnvironmentVariableExportScript.existsSync(), isFalse);
expect(projectUnderTest.ios.deprecatedCompiledDartFramework.existsSync(), isFalse); expect(projectUnderTest.ios.deprecatedCompiledDartFramework.existsSync(), isFalse);
expect(projectUnderTest.ios.deprecatedProjectFlutterFramework.existsSync(), isFalse); expect(projectUnderTest.ios.deprecatedProjectFlutterFramework.existsSync(), isFalse);
expect(projectUnderTest.ios.flutterPodspec.existsSync(), isFalse);
expect(projectUnderTest.linux.ephemeralDirectory.existsSync(), isFalse); expect(projectUnderTest.linux.ephemeralDirectory.existsSync(), isFalse);
expect(projectUnderTest.macos.ephemeralDirectory.existsSync(), isFalse); expect(projectUnderTest.macos.ephemeralDirectory.existsSync(), isFalse);
......
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