[M] sync from n3
This commit is contained in:
@@ -41,9 +41,15 @@ namespace tysdk.editor
|
||||
|
||||
private static void XcodeOverwriteFiles(string projPath, PBXProject proj)
|
||||
{
|
||||
var mainAppPath = Path.Combine(projPath, "Classes", "Preprocessor.h");
|
||||
var mainContent = File.ReadAllText(mainAppPath);
|
||||
var newContent = mainContent.Replace("#define UNITY_USES_REMOTE_NOTIFICATIONS 0", "#define UNITY_USES_REMOTE_NOTIFICATIONS 1");
|
||||
|
||||
string mainAppPath = Path.Combine(projPath, "MainApp", "main.mm");
|
||||
string mainContent = File.ReadAllText(mainAppPath);
|
||||
string newContent = mainContent.Replace("#include <UnityFramework/UnityFramework.h>", @"#include ""../UnityFramework/UnityFramework.h""");
|
||||
File.WriteAllText(mainAppPath, newContent);
|
||||
|
||||
mainAppPath = Path.Combine(projPath, "Classes", "Preprocessor.h");
|
||||
mainContent = File.ReadAllText(mainAppPath);
|
||||
newContent = mainContent.Replace("#define UNITY_USES_REMOTE_NOTIFICATIONS 0", "#define UNITY_USES_REMOTE_NOTIFICATIONS 1");
|
||||
File.WriteAllText(mainAppPath, newContent);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user