diff --git a/Editor/GuruBuildSuit/IOS_POST_FIREBASE/IOSPostBuild.Firebase.VersionFix.cs b/Editor/GuruBuildSuit/IOS_POST_FIREBASE/IOSPostBuild.Firebase.VersionFix.cs deleted file mode 100644 index 586e738..0000000 --- a/Editor/GuruBuildSuit/IOS_POST_FIREBASE/IOSPostBuild.Firebase.VersionFix.cs +++ /dev/null @@ -1,119 +0,0 @@ -using System.Collections.Generic; -using System.Linq; -using UnityEngine; - -#if UNITY_IOS - -namespace Guru.Editor -{ - using UnityEditor; - using System; - using System.IO; - using UnityEditor.Callbacks; - - - public class IOSPostBuild_Firebase_VersionFix - { - - - private static string[] fixedLibs = new string[] - { - "Firebase/Core", - "Firebase/Firestore", - "Firebase/Analytics", - "Firebase/Storage", - "Firebase/Auth", - "Firebase/Messaging", - "Firebase/Crashlytics", - "Firebase/DynamicLinks", - "Firebase/RemoteConfig", - }; - - private static string[] additionLibs = new string[] - { - "FirebaseFirestoreInternal", - }; - - private static string fixedVersion = "10.22.0"; - private static string minTargetSdk = "8.0"; - - // - - - - // Firebase 10.20.0 fixed to 10.22.0. BUT higher version do not open this ATTRIBUTE !! - // [PostProcessBuild(47)] // MAX POD Process Order - public static void PostBuildFixPodDeps(BuildTarget target, string projPath) - { - if (target != BuildTarget.iOS) return; - - string podfile = Path.Combine(projPath, "Podfile"); - if (!File.Exists(podfile)) return; - - FixFirebasePodVersion(podfile); - } - - - private static void FixFirebasePodVersion(string podfile) - { - var lines = File.ReadAllLines(podfile).ToList(); - string line = ""; - int idx = 0; - bool isDirty = false; - List needAdded = new List(additionLibs); - for (int i = 0; i < lines.Count; i++) - { - line = lines[i]; - - if (line.Contains("pod '")) - { - idx = i; - } - - foreach (var libName in fixedLibs) - { - if (line.Contains(libName)) - { - lines[i] = FixOneFirebaseLibVersion(line, fixedVersion); - isDirty = true; - } - } - - foreach (var libName in additionLibs) - { - if (line.Contains(libName)) - { - needAdded.Remove(libName); - lines[i] = FixOneFirebaseLibVersion(line, fixedVersion); - isDirty = true; - } - } - } - - if (needAdded.Count > 0) - { - // pod 'Firebase/DynamicLinks', '10.20.0' - foreach (var libName in needAdded) - { - idx++; - idx = Mathf.Min(idx, lines.Count - 1); - lines.Insert(idx, $"\tpod '{libName}', '{fixedVersion}'"); - isDirty = true; - } - } - - if(isDirty) File.WriteAllLines(podfile, lines); - } - - private static string FixOneFirebaseLibVersion(string line, string fixedVersion) - { - if(!line.Contains("', '") || !line.Contains("pod")) return line; - string fixedLine = line.Substring(0, line.IndexOf("', '") + 4) + $"{fixedVersion}'"; - return fixedLine; - } - } -} - - - -#endif \ No newline at end of file diff --git a/Editor/GuruBuildSuit/IOS_POST_FIREBASE/IOSPostBuild.Firebase.VersionFix.cs.meta b/Editor/GuruBuildSuit/IOS_POST_FIREBASE/IOSPostBuild.Firebase.VersionFix.cs.meta deleted file mode 100644 index 6445cc4..0000000 --- a/Editor/GuruBuildSuit/IOS_POST_FIREBASE/IOSPostBuild.Firebase.VersionFix.cs.meta +++ /dev/null @@ -1,3 +0,0 @@ -fileFormatVersion: 2 -guid: 2aab28d86c8346e581c650a86cad060f -timeCreated: 1717039005 \ No newline at end of file diff --git a/Runtime/HotFix.meta b/Runtime/HotFix.meta deleted file mode 100644 index 3e24aec..0000000 --- a/Runtime/HotFix.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 21655bd888424261bed6cea66e8f76eb -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Runtime/HotFix/Editor.meta b/Runtime/HotFix/Editor.meta deleted file mode 100644 index 809861e..0000000 --- a/Runtime/HotFix/Editor.meta +++ /dev/null @@ -1,3 +0,0 @@ -fileFormatVersion: 2 -guid: b7d6cb5c63a940ba85c55c10841e5ad2 -timeCreated: 1709704186 \ No newline at end of file diff --git a/Runtime/HotFix/Editor/FirebaseHotfixDependencies.xml.DISABLED b/Runtime/HotFix/Editor/FirebaseHotfixDependencies.xml.DISABLED deleted file mode 100644 index 3a524dd..0000000 --- a/Runtime/HotFix/Editor/FirebaseHotfixDependencies.xml.DISABLED +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - - - - - - - - - \ No newline at end of file diff --git a/Runtime/HotFix/Editor/FirebaseHotfixDependencies.xml.DISABLED.meta b/Runtime/HotFix/Editor/FirebaseHotfixDependencies.xml.DISABLED.meta deleted file mode 100644 index 01ef355..0000000 --- a/Runtime/HotFix/Editor/FirebaseHotfixDependencies.xml.DISABLED.meta +++ /dev/null @@ -1,3 +0,0 @@ -fileFormatVersion: 2 -guid: 23787d57e81d4fa18d986c16746ab31e -timeCreated: 1709641668 \ No newline at end of file