From 9738bb30357917a27eeb675d7ef41b6b950ef997 Mon Sep 17 00:00:00 2001 From: xiaoyi Date: Wed, 21 Jul 2021 19:37:52 +0800 Subject: [PATCH] feat: revert tap login plist script --- Editor.meta | 8 ++++++++ Editor/TapLoginIOSProcessor.cs | 28 ++++++++++++++++++++++++++ Editor/TapLoginIOSProcessor.cs.meta | 11 ++++++++++ Editor/TapTap.Login.Editor.asmdef | 16 +++++++++++++++ Editor/TapTap.Login.Editor.asmdef.meta | 7 +++++++ 5 files changed, 70 insertions(+) create mode 100644 Editor.meta create mode 100644 Editor/TapLoginIOSProcessor.cs create mode 100644 Editor/TapLoginIOSProcessor.cs.meta create mode 100644 Editor/TapTap.Login.Editor.asmdef create mode 100644 Editor/TapTap.Login.Editor.asmdef.meta 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..8bb1197 --- /dev/null +++ b/Editor/TapLoginIOSProcessor.cs @@ -0,0 +1,28 @@ +using System.IO; +using TapTap.Common.Editor; +using UnityEditor; +using UnityEditor.Callbacks; +using UnityEngine; + +namespace TapTap.Login.Editor +{ + public static class TapLoginIOSProcessor + { + [PostProcessBuild(102)] + 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("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: