Refactor iOS deployment to use XCode project

This commit is contained in:
Wojtek Figat
2023-06-01 00:46:39 +02:00
parent 5416d385d3
commit c46f78885e
22 changed files with 867 additions and 403 deletions

View File

@@ -866,6 +866,16 @@ bool EditorUtilities::ReplaceInFile(const StringView& file, const StringView& fi
return File::WriteAllText(file, text, Encoding::ANSI);
}
bool EditorUtilities::ReplaceInFile(const StringView& file, const Dictionary<String, String, HeapAllocation>& replaceMap)
{
String text;
if (File::ReadAllText(file, text))
return true;
for (const auto& e : replaceMap)
text.Replace(e.Key.Get(), e.Key.Length(), e.Value.Get(), e.Value.Length());
return File::WriteAllText(file, text, Encoding::ANSI);
}
bool EditorUtilities::CopyFileIfNewer(const StringView& dst, const StringView& src)
{
if (FileSystem::FileExists(dst) &&