|
@@ -56,16 +56,12 @@ public class NewBehaviourScript
|
|
|
|
|
|
plist.ReadFromFile(plistPath);
|
|
|
|
|
|
- //plist.root.SetString("Bundle display name", "${CFBundleDisplayName }");
|
|
|
- plist.root["Bundle display name"] = new PlistElementString("Bundle display name");
|
|
|
+ plist.root.SetString("CFBundleDisplayName", "${CFBundleDisplayName}");
|
|
|
+
|
|
|
+ NativeLocale.AddLocalizedStringsIOS(buildPath, Application.dataPath + "/AppleDependency");
|
|
|
+
|
|
|
+ File.WriteAllText(projectPath, project.WriteToString());
|
|
|
|
|
|
- //var infoDirs = Directory.GetDirectories(Application.dataPath + "/AppleDependency/");
|
|
|
- //for (var i = 0; i < infoDirs.Length; ++i)
|
|
|
- //{
|
|
|
- // var files = Directory.GetFiles(infoDirs[i], "*.strings");
|
|
|
- // project.AddLocalization(Path.GetFileNameWithoutExtension(files[i]), "InfoPlist.strings", "InfoPlist.strings");
|
|
|
- //}
|
|
|
-
|
|
|
|
|
|
//修改UnityAppController.mm
|
|
|
string scriptPath = buildPath + "/Classes/UnityAppController.mm";
|
|
@@ -132,9 +128,6 @@ public class NewBehaviourScript
|
|
|
|
|
|
//urlDict.SetString("URL Schemes", "MyLovelyGarden");
|
|
|
//urlDict.SetString("CFBundleURLSchemes", "MyLovelyGarden");
|
|
|
-
|
|
|
- //PlistElementArray urlInnerArray = urlDict.CreateArray("TestScheme");
|
|
|
- //urlInnerArray.AddString("TestValue");
|
|
|
|
|
|
|
|
|
//保存Plist
|