Unverified Commit 0dc7be3b authored by Jenn Magder's avatar Jenn Magder Committed by GitHub

Always remove the workspace settings (#56703)

parent ebce82ae
......@@ -28,14 +28,10 @@ class XcodeBuildSystemMigration extends IOSMigrator {
final String contents = _xcodeWorkspaceSharedSettings.readAsStringSync();
// Only delete this file when it matches the original Flutter template.
// Only delete this file when it is pointing to the legacy build system.
const String legacyBuildSettingsWorkspace = '''
<plist version="1.0">
<dict>
<key>BuildSystemType</key>
<string>Original</string>
</dict>
</plist>''';
<string>Original</string>''';
// contains instead of equals to ignore newline file ending variance.
if (contents.contains(legacyBuildSettingsWorkspace)) {
......
......@@ -322,6 +322,8 @@ keep this 2
<dict>
<key>BuildSystemType</key>
<string>Original</string>
<key>PreviewsEnabled</key>
<false/>
</dict>
</plist>''';
xcodeWorkspaceSharedSettings.writeAsStringSync(contents);
......
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