|
@@ -45,35 +45,31 @@
|
|
|
|
|
|
project.ReadFromFile(projectPath);
|
|
|
|
|
|
- PlistElementDict urlDict = plist.root["CFBundleURLTypes"].AsArray().AddDict();
|
|
|
-
|
|
|
- urlDict.SetString("CFBundleURLSchemes", "MyLovelyGarden");
|
|
|
-
|
|
|
- foreach (var array in plist.root["CFBundleURLTypes"].AsArray().values)
|
|
|
- {
|
|
|
- Debug.Log("URLType");
|
|
|
- foreach (var dic in array.AsDict().values)
|
|
|
- {
|
|
|
- if (dic.Value.GetType() == typeof(PlistElementString))
|
|
|
- {
|
|
|
- Debug.Log(" " + dic.Key + " " + dic.Value.AsString());
|
|
|
- }
|
|
|
- else if (dic.Value.GetType() == typeof(PlistElementArray))
|
|
|
- {
|
|
|
- Debug.Log(" URLSchemes");
|
|
|
- foreach (var ele in dic.Value.AsArray().values)
|
|
|
- {
|
|
|
- Debug.Log(" " + ele.AsString());
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- //PlistElementArray urlArray = plist.root.CreateArray("CFBundleURLTypes");
|
|
|
- //PlistElementDict urlDict = urlArray.AddDict();
|
|
|
-
|
|
|
- //urlDict.SetString("URL Schemes", "MyLovelyGarden");
|
|
|
+
|
|
|
+
|
|
|
+ //PlistElementDict urlDict = plist.root["CFBundleURLTypes"].AsArray().AddDict();
|
|
|
+
|
|
|
//urlDict.SetString("CFBundleURLSchemes", "MyLovelyGarden");
|
|
|
+
|
|
|
+ //foreach (var array in plist.root["CFBundleURLTypes"].AsArray().values)
|
|
|
+ //{
|
|
|
+ // Debug.Log("URLType");
|
|
|
+ // foreach (var dic in array.AsDict().values)
|
|
|
+ // {
|
|
|
+ // if (dic.Value.GetType() == typeof(PlistElementString))
|
|
|
+ // {
|
|
|
+ // Debug.Log(" " + dic.Key + " " + dic.Value.AsString());
|
|
|
+ // }
|
|
|
+ // else if (dic.Value.GetType() == typeof(PlistElementArray))
|
|
|
+ // {
|
|
|
+ // Debug.Log(" URLSchemes");
|
|
|
+ // foreach (var ele in dic.Value.AsArray().values)
|
|
|
+ // {
|
|
|
+ // Debug.Log(" " + ele.AsString());
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ //}
|
|
|
}
|
|
|
}
|
|
|
}
|