|
@@ -57,7 +57,7 @@ public class NewBehaviourScript
|
|
|
plist.ReadFromFile(plistPath);
|
|
|
|
|
|
//plist.root.SetString("Bundle display name", "${CFBundleDisplayName }");
|
|
|
- plist.root.CreateDict("Bundle display name").SetString("Bundle display name", "${CFBundleDisplayName }");
|
|
|
+ plist.root["Bundle display name"] = new PlistElementString("Bundle display name");
|
|
|
|
|
|
//var infoDirs = Directory.GetDirectories(Application.dataPath + "/AppleDependency/");
|
|
|
//for (var i = 0; i < infoDirs.Length; ++i)
|
|
@@ -129,12 +129,9 @@ public class NewBehaviourScript
|
|
|
//添加URLScheme
|
|
|
//PlistElementArray urlArray = plist.root.CreateArray("CFBundleURLTypes");
|
|
|
//PlistElementDict urlDict = urlArray.AddDict();
|
|
|
- PlistElementArray urlArray = plist.root["CFBundleURLTypes"].AsArray();
|
|
|
- PlistElementDict urlDict = urlArray.AddDict();
|
|
|
|
|
|
- //urlDict.SetString("CFBundleURLName", "TestName");
|
|
|
- urlDict.SetString("URL Schemes", "MyLovelyGarden");
|
|
|
- urlDict.SetString("CFBundleURLSchemes", "MyLovelyGarden");
|
|
|
+ //urlDict.SetString("URL Schemes", "MyLovelyGarden");
|
|
|
+ //urlDict.SetString("CFBundleURLSchemes", "MyLovelyGarden");
|
|
|
|
|
|
//PlistElementArray urlInnerArray = urlDict.CreateArray("TestScheme");
|
|
|
//urlInnerArray.AddString("TestValue");
|