diff --git a/Editor.meta b/Editor.meta new file mode 100644 index 0000000..492e842 --- /dev/null +++ b/Editor.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 3e681f29e007e4e93b460de6b4b728d6 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Editor/TapLoginIOSProcessor.cs b/Editor/TapLoginIOSProcessor.cs new file mode 100644 index 0000000..84ecf52 --- /dev/null +++ b/Editor/TapLoginIOSProcessor.cs @@ -0,0 +1,40 @@ +using System.IO; +using TapTap.Common.Editor; +using UnityEditor; +using UnityEditor.Callbacks; +using UnityEngine; + +namespace TapTap.Login.Editor +{ + public static class TapLoginIOSProcessor + { + // 添加标签,unity导出工程后自动执行该函数 + [PostProcessBuild(103)] + public static void OnPostprocessBuild(BuildTarget buildTarget, string path) + { + if (buildTarget != BuildTarget.iOS) return; + + // 获得工程路径 + var projPath = TapCommonCompile.GetProjPath(path); + var proj = TapCommonCompile.ParseProjPath(projPath); + var target = TapCommonCompile.GetUnityTarget(proj); + + if (TapCommonCompile.CheckTarget(target)) + { + Debug.LogError("Unity-iPhone is NUll"); + return; + } + + var parentFolder = Directory.GetParent(Application.dataPath)?.FullName; + var plistFile = TapFileHelper.RecursionFilterFile(parentFolder + "/Assets/Plugins/", "TDS-Info.plist"); + + if (!plistFile.Exists) + { + Debug.LogError("TapSDK Can't find TDS-Info.plist in Project/Assets/Plugins/!"); + } + + TapCommonCompile.HandlerPlist(path, plistFile.FullName); + + } + } +} \ No newline at end of file diff --git a/Editor/TapLoginIOSProcessor.cs.meta b/Editor/TapLoginIOSProcessor.cs.meta new file mode 100644 index 0000000..f0fb142 --- /dev/null +++ b/Editor/TapLoginIOSProcessor.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 543a4c42d7c774f1cb7a7b18b19c6c5f +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Editor/TapTap.Login.Editor.asmdef b/Editor/TapTap.Login.Editor.asmdef new file mode 100644 index 0000000..8d5ef25 --- /dev/null +++ b/Editor/TapTap.Login.Editor.asmdef @@ -0,0 +1,16 @@ +{ + "name": "TapTap.Login.Editor", + "references": [ + "TapTap.Common.Editor" + ], + "optionalUnityReferences": [], + "includePlatforms": [ + "Editor" + ], + "excludePlatforms": [], + "allowUnsafeCode": false, + "overrideReferences": false, + "precompiledReferences": [], + "autoReferenced": true, + "defineConstraints": [] +} \ No newline at end of file diff --git a/Editor/TapTap.Login.Editor.asmdef.meta b/Editor/TapTap.Login.Editor.asmdef.meta new file mode 100644 index 0000000..28a228e --- /dev/null +++ b/Editor/TapTap.Login.Editor.asmdef.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 4a4f5a2aa7ce743a1a54c06fc9e913e6 +AssemblyDefinitionImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Plugins/Android/libs/TapLogin_3.0.0.aar b/Plugins/Android/libs/TapLogin_3.0.0.aar index 999c627..1f572c7 100644 Binary files a/Plugins/Android/libs/TapLogin_3.0.0.aar and b/Plugins/Android/libs/TapLogin_3.0.0.aar differ diff --git a/Plugins/TapTap.Login.dll b/Plugins/TapTap.Login.dll index d49cdb4..140a95b 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 cd08bc6..027282b 100644 Binary files a/Plugins/TapTap.Login.pdb and b/Plugins/TapTap.Login.pdb differ