Add macos project auto migration code for FlutterApplication (#122336)

Add macos project auto migration code for FlutterApplication
This commit is contained in:
Greg Spencer
2023-03-15 18:01:03 -07:00
committed by GitHub
parent 2ba0d0d73f
commit c2f5bf99f1
20 changed files with 285 additions and 29 deletions

View File

@@ -298,6 +298,16 @@ class FakePlistParser implements PlistParser {
String? getStringValueFromFile(String plistFilePath, String key) {
return _underlyingValues[key] as String?;
}
@override
bool replaceKey(String plistFilePath, {required String key, String? value}) {
if (value == null) {
_underlyingValues.remove(key);
return true;
}
setProperty(key, value);
return true;
}
}
class FakeBotDetector implements BotDetector {