mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Always remove the workspace settings (#56703)
This commit is contained in:
parent
ebce82aefd
commit
0dc7be3bb0
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user