diff --git a/Editor/TapLoginIOSProcessor.cs b/Editor/TapLoginIOSProcessor.cs index 25e1d30..58ab393 100644 --- a/Editor/TapLoginIOSProcessor.cs +++ b/Editor/TapLoginIOSProcessor.cs @@ -1,3 +1,4 @@ +using System.IO; using TapTap.Common.Editor; using UnityEditor; using UnityEditor.Callbacks; @@ -11,14 +12,27 @@ namespace TapTap.Login.Editor public static void OnPostprocessBuild(BuildTarget buildTarget, string path) { if (buildTarget != BuildTarget.iOS) return; - + + var parentFolder = Directory.GetParent(Application.dataPath).FullName; + + var plistFile = TapFileHelper.RecursionFilterFile(parentFolder + "/Assets/Plugins/", "TDS-Info.plist"); + + if (!plistFile.Exists) + { + Debug.LogError("TapLogin Can't find TDS-Info.plist in Project/Assets/Plugins/!"); + } + + TapCommonCompile.HandlerPlist(path, plistFile.FullName); + + // UnityAppController.mm 中对于 URLScheme 的处理 var unityAppControllerPath = path + "/Classes/UnityAppController.mm"; var unityAppController = new TapFileHelper(unityAppControllerPath); unityAppController.WriteBelow(@"#import ", @"#import "); unityAppController.WriteBelow( @"id sourceApplication = options[UIApplicationOpenURLOptionsSourceApplicationKey], annotation = options[UIApplicationOpenURLOptionsAnnotationKey];", @"if(url){[TapLoginHelper handleTapTapOpenURL:url];}"); - Debug.Log("TapLogin Change AppControler File!"); + + Debug.Log("TapLogin Change AppController File!"); } } } \ No newline at end of file diff --git a/Plugins/TapTap.Login.dll b/Plugins/TapTap.Login.dll index bc9539a..608ea47 100644 Binary files a/Plugins/TapTap.Login.dll and b/Plugins/TapTap.Login.dll differ diff --git a/Plugins/TapTap.Login.pdb b/Plugins/TapTap.Login.pdb index ab52516..add5669 100644 Binary files a/Plugins/TapTap.Login.pdb and b/Plugins/TapTap.Login.pdb differ