From 0132660406cfb86e8ed79b4322bc643cf7bf6648 Mon Sep 17 00:00:00 2001 From: xiaoyi Date: Tue, 6 Jul 2021 15:53:36 +0800 Subject: [PATCH] feat(*): Bootstrap remove unuse interface , remove native library , iOS compilation script migration to login --- Editor/TapCommonCompile.cs | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/Editor/TapCommonCompile.cs b/Editor/TapCommonCompile.cs index e1e5ca8..95e32fd 100644 --- a/Editor/TapCommonCompile.cs +++ b/Editor/TapCommonCompile.cs @@ -45,7 +45,8 @@ namespace TapTap.Common.Editor return string.IsNullOrEmpty(target); } - public static bool HandlerIOSSetting(string path, string appDataPath, string resourceName, string modulePackageName, + public static bool HandlerIOSSetting(string path, string appDataPath, string resourceName, + string modulePackageName, string moduleName, string[] bundleNames, string target, string projPath, PBXProject proj) { var resourcePath = Path.Combine(path, resourceName); @@ -98,9 +99,9 @@ namespace TapTap.Common.Editor Debug.LogError($"Can't Find {bundleNames}"); return false; } - + TapFileHelper.CopyAndReplaceDirectory(tdsResourcePath, resourcePath); - + foreach (var name in bundleNames) { proj.AddFileToBuild(target, @@ -120,8 +121,8 @@ namespace TapTap.Common.Editor plist.ReadFromString(File.ReadAllText(plistPath)); var rootDic = plist.root; - var items = new List - { + var items = new List + { "tapsdk", "tapiosdk", }; @@ -147,9 +148,10 @@ namespace TapTap.Common.Editor } else { - rootDic.SetString(item.Key.ToString(), item.Value.ToString()); + rootDic.SetString(item.Key, item.Value.ToString()); } } + //添加url var dict = plist.root.AsDict(); var array = dict.CreateArray("CFBundleURLTypes"); @@ -157,12 +159,12 @@ namespace TapTap.Common.Editor dict2.SetString("CFBundleURLName", "TapTap"); var array2 = dict2.CreateArray("CFBundleURLSchemes"); array2.AddString(taptapId); - + Debug.Log("TapSDK change plist Success"); File.WriteAllText(plistPath, plist.WriteToString()); return true; } - + public static string GetValueFromPlist(string infoPlistPath, string key) { if (infoPlistPath == null)