qiuqiu пре 2 месеци
родитељ
комит
9a66409309

+ 7 - 3
.idea/workspace.xml

@@ -8,8 +8,10 @@
   <component name="ChangeListManager">
     <list default="true" id="fec10672-acda-4616-894b-a4b6f93aea6f" name="Default Changelist" comment="提交">
       <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
-      <change beforePath="$PROJECT_DIR$/笔记文件/日记/2025_09_15_星期一.md" beforeDir="false" afterPath="$PROJECT_DIR$/笔记文件/日记/2025_09_15_星期一.md" afterDir="false" />
-      <change beforePath="$PROJECT_DIR$/笔记文件/日记/2025_09_17_星期三.md" beforeDir="false" afterPath="$PROJECT_DIR$/笔记文件/日记/2025_09_17_星期三.md" afterDir="false" />
+      <change beforePath="$PROJECT_DIR$/笔记文件/2.笔记/安卓aar 构建工具链 AGP问题处理.md" beforeDir="false" />
+      <change beforePath="$PROJECT_DIR$/笔记文件/2.笔记/灵光系统 临时记录_第一章.md" beforeDir="false" afterPath="$PROJECT_DIR$/笔记文件/2.笔记/灵光系统 临时记录_第一章.md" afterDir="false" />
+      <change beforePath="$PROJECT_DIR$/笔记文件/日记/2025_09_18_星期四.md" beforeDir="false" afterPath="$PROJECT_DIR$/笔记文件/日记/2025_09_18_星期四.md" afterDir="false" />
+      <change beforePath="$PROJECT_DIR$/笔记文件/日记/2025_09_19_星期五.md" beforeDir="false" afterPath="$PROJECT_DIR$/笔记文件/日记/2025_09_19_星期五.md" afterDir="false" />
     </list>
     <option name="SHOW_DIALOG" value="false" />
     <option name="HIGHLIGHT_CONFLICTS" value="true" />
@@ -45,7 +47,7 @@
     <property name="RunOnceActivity.ShowReadmeOnStart" value="true" />
     <property name="WebServerToolWindowFactoryState" value="false" />
     <property name="cf.first.check.clang-format" value="false" />
-    <property name="last_opened_file_path" value="$USER_HOME$/code/git/testlalala" />
+    <property name="last_opened_file_path" value="$PROJECT_DIR$" />
     <property name="nodejs_package_manager_path" value="npm" />
     <property name="settings.editor.selected.configurable" value="preferences.general" />
   </component>
@@ -147,6 +149,8 @@
       <workItem from="1758070606741" duration="599000" />
       <workItem from="1758157946834" duration="649000" />
       <workItem from="1758160879946" duration="1262000" />
+      <workItem from="1758246794321" duration="15000" />
+      <workItem from="1758246886376" duration="1878000" />
     </task>
     <task id="LOCAL-00019" summary="提交">
       <created>1744275726720</created>

+ 38 - 0
笔记文件/2.笔记/PostProcessBuild序号.md

@@ -0,0 +1,38 @@
+#ios 
+#unity/日常积累 
+
+在 Unity 的 `[PostProcessBuild]` 属性中,**序号越大,执行顺序越靠后**。
+
+### 执行规则详解:
+
+#### 1. **升序执行**
+
+Unity 会按照 `order` 参数的数值**从小到大**依次执行:
+
+``` cs
+[PostProcessBuild(100)]    // 第一个执行
+public static void Step1(BuildTarget target, string pathToBuiltProject)
+
+[PostProcessBuild(200)]    // 第二个执行  
+public static void Step2(BuildTarget target, string pathToBuiltProject)
+
+[PostProcessBuild(300)]    // 第三个执行
+public static void Step3(BuildTarget target, string pathToBuiltProject)
+
+[PostProcessBuild(9999)]   // 最后一个执行
+public static void FinalStep(BuildTarget target, string pathToBuiltProject)
+```
+
+#### 2. **相同序号的执行顺序**
+
+如果多个方法使用相同的序号,**执行顺序是不确定的**(依赖于反射获取方法的顺序)。
+
+#### 3. **默认顺序**
+
+如果不指定 `order` 参数,默认为 0:
+
+``` cs
+[PostProcessBuild]  // 相当于 order = 0,最先执行之一
+public static void DefaultOrder(BuildTarget target, string pathToBuiltProject)
+```
+

+ 127 - 0
笔记文件/2.笔记/classes.jar.md

@@ -0,0 +1,127 @@
+#安卓 
+
+### 本质是什么?
+
+`classes.jar` 本质上是一个 **JAR(Java Archive)文件**,它包含了:
+
+1.  **编译后的字节码**(所有 `.class` 文件)
+    
+2.  **资源文件**(可选)
+    
+3.  **元数据**(MANIFEST.MF 等)
+    
+
+### 产生场景和位置:
+
+#### 1. **Android Library Module(AAR 包内)**
+
+
+```
+my-library.aar
+├── classes.jar       ← 库的编译代码
+├── res/              ← 资源文件
+├── AndroidManifest.xml
+└── R.txt             ← 资源索引
+```
+
+#### 2. **Android App Module(APK 包内)**
+
+```
+app-debug.apk
+├── classes.dex       ← 由 classes.jar 转换而来
+├── res/
+├── lib/              ← native 库
+└── AndroidManifest.xml
+```
+
+#### 3. **Gradle 构建过程中**
+
+```
+app/build/intermediates/
+├── compile_library_classes_jar/
+│   └── release/
+│       └── classes.jar ← 编译后的类文件
+├── bundle_libs/
+│   └── jars/ ← 所有依赖的 classes.jar
+└── packaged_res/
+```
+
+### 在 Unity 中的重要性:
+
+对于 Unity 开发者,`classes.jar` 特别重要是因为:
+
+#### 1. **Android 插件开发**
+
+```
+# Unity 会自动处理 plugins/android/libs 下的 jars
+Assets/
+└── Plugins/
+    └── Android/
+        ├── libs/
+        │   ├── classes.jar     ← 你的 Java 代码
+        │   └── other-lib.jar   ← 第三方依赖
+        ├── res/
+        └── AndroidManifest.xml
+```
+
+#### 2. **Gradle 依赖管理**
+
+``` groovy
+// Unity 生成的 build.gradle
+dependencies {
+    implementation fileTree(dir: 'libs', include: ['*.jar'])
+    implementation files('libs/classes.jar')  // 直接引用
+}
+```
+
+#### 3. **与 Unity 的交互**
+
+`classes.jar` 中的代码可以通过 JNI 与 Unity 的 C# 代码交互:
+
+``` java
+// 在 classes.jar 中的 Java 代码
+public class UnityBridge {
+    public static void showToast(String message) {
+        // 调用 Unity 的 C# 方法
+        UnityPlayer.UnitySendMessage("MainCamera", "OnJavaMessage", message);
+    }
+}
+```
+
+### 常见操作:
+
+#### 1. **查看 jar 内容**
+
+``` bash
+jar tf classes.jar          # 列出内容
+javap -c MyClass.class      # 反汇编字节码
+```
+
+#### 2. **解压和重新打包**
+
+``` bash
+# 解压
+jar xf classes.jar
+
+# 重新打包  
+jar cf new-classes.jar *.class
+```
+
+#### 3. **在 Unity 中调试**
+
+``` cs
+// C# 中调用 Java 代码
+AndroidJavaClass javaClass = new AndroidJavaClass("com.example.MyClass");
+javaClass.CallStatic("showToast", "Hello from Unity!");
+```
+
+### 注意事项:
+
+1.  **混淆问题**:发布版本可能会被 ProGuard/R8 混淆
+    
+2.  **版本冲突**:多个 jars 可能有重复的类
+    
+3.  **依赖管理**:需要处理传递性依赖
+    
+
+**总结**:`classes.jar` 是 Android 开发中的核心中间产物,包含了所有的编译后 Java 字节码,在 Unity 的 Android 插件开发和中起着桥梁作用。

+ 35 - 0
笔记文件/2.笔记/mac软件安装后,文件损坏处理 以macSvn软件为例.md

@@ -0,0 +1,35 @@
+#杂七杂八常识 
+
+参考链接(只是参考步骤,里面的指令不准):https://cloud.tencent.com/developer/article/2510165
+
+从网上下载的mac软件,比较常见,会遇到这个报错
+
+![[Pasted image 20250919172535.png]]
+
+先打开控制台,执行一下指令:
+
+``` shell
+sudo spctl --master-disable
+```
+
+![[Pasted image 20250919172707.png]]
+
+mac的设置里面,这样弄一下,允许任何来源
+
+![[img_v3_02on_ac6fda0a-c9b2-4335-8269-a1fb6bc192hu.jpg]]
+
+然后,以安装好,在mac电脑的 `Cornerstone.app` 程序为例,执行一下这个指令
+
+``` shell
+sudo xattr -r -d com.apple.quarantine /Applications/Cornerstone.app
+```
+
+指令含义:
+
+![[img_v3_02on_ae951a65-6a68-491b-b401-da9ba715cehu.jpg]]
+
+这样,就可以正常打开了:
+
+![[Pasted image 20250919173014.png]]
+
+![[Pasted image 20250919173036.png]]

+ 37 - 0
笔记文件/2.笔记/podfile共享依赖引用.md

@@ -0,0 +1,37 @@
+#ios 
+
+可以参考,使用这种方式,会共享 `shared_firebase_deps`这个依赖;
+
+```
+def shared_firebase_deps
+  pod 'Firebase/Core', '12.0.0'
+  pod 'Firebase/Messaging', '12.0.0'
+end
+
+target 'UnityFramework' do
+  shared_firebase_deps
+  pod 'Firebase/Analytics', '12.0.0'  # 只有主target需要的额外功能
+end
+
+target 'Unity-iPhone' do
+end
+
+use_frameworks! :linkage => :static
+
+target 'FirebaseNotificationService' do
+  shared_firebase_deps  # 只共享基础依赖
+end
+```
+
+还可以使用,这种方式,直接把`FirebaseNotificationService`嵌套到主框架里面
+
+```
+target 'UnityFramework' do
+  pod 'Firebase/Analytics', '12.0.0'
+  pod 'Firebase/Core', '12.0.0'
+  pod 'Firebase/Messaging', '12.0.0'
+
+  target 'FirebaseNotificationService' do
+  end
+end
+```

+ 3 - 1
笔记文件/2.笔记/安卓aar 构建工具链 AGP问题处理.md → 笔记文件/2.笔记/sqlite 安卓aar 配合 unity 2022 构建工具链 AGP问题处理.md

@@ -39,4 +39,6 @@
 
 -   或在 Gradle/gradle.properties 中加兼容开关,避免触发新版路径,但这在 Unity 内置 Gradle 下可操作空间较小。
 
-结论:你的处理本质是“让新 AAR 避免触发 AGP 7.4 的不兼容逻辑”,因此可以正常打包与运行。
+结论:你的处理本质是“让新 AAR 避免触发 AGP 7.4 的不兼容逻辑”,因此可以正常打包与运行。
+
+其余,可参考[[classes.jar]]

+ 5 - 1
笔记文件/2.笔记/灵光系统 临时记录_第一章.md

@@ -29,11 +29,15 @@ Yuan1234
 
 蜂鸟:
 laojiang@inspiregames.cn
-sujiang9
+sujiang91
+
+测试环境 上报地址:
+http://192.168.1.33/
 
 正式环境 上报地址:
 元素:ilnc.icongamesg.com
 X项目:ilnc.doomsurvivor.com
+三消项目:ilnc.hummingbirdgamesltd.com
 ```
 
 参考接入逻辑:

+ 120 - 98
笔记文件/2.笔记/灵光系统 临时记录_第二章.md

@@ -20,6 +20,7 @@ public class FirebaseCloudMessage : MonoBehaviour
 {
 
     private static string firebaseMessageReportUrl = String.Empty; //灵光平台 上报地址
+    private static string firebaseMessageNotificationUrl = String.Empty; //灵光平台 触达率 上报地址
     
     private static string _android_channel; //安卓渠道号(和服务端确认即可)
     private static string _ios_channel; //ios渠道号(和服务端确认即可)
@@ -31,8 +32,10 @@ public class FirebaseCloudMessage : MonoBehaviour
     private static string userID; //玩家ID
     private static bool inited = false; //是否初始化完成
 
-    private string _platform; //移动平台
-    private string _channel; //渠道号
+    private static string _platform; //移动平台
+    private static string _channel; //渠道号
+
+    private static bool isFirebaseEnable = false; //判断firebase依赖是否正常,云推送后是否可用
 
     // private static FirebaseApp app;
 
@@ -47,7 +50,6 @@ public class FirebaseCloudMessage : MonoBehaviour
     /// <param name="country">国家</param>
     public static void Init(string appID,string ReportUrl,string android_channel = "2001",string ios_channel = "1001",string language = "en",string country = "US")
     {
-        
         Firebase.FirebaseApp.CheckAndFixDependenciesAsync().ContinueWithOnMainThread(task => {
             var dependencyStatus = task.Result;
             if (dependencyStatus == Firebase.DependencyStatus.Available) {
@@ -55,17 +57,26 @@ public class FirebaseCloudMessage : MonoBehaviour
                 // where app is a Firebase.FirebaseApp property of your application class.
                 // app = Firebase.FirebaseApp.DefaultInstance;
                 firebaseMessageReportUrl = $"{ReportUrl}/api/app/{appID}/user/update";
+                firebaseMessageNotificationUrl = $"{ReportUrl}/api/app/{appID}/user/click";
                 _android_channel = android_channel;
                 _ios_channel = ios_channel;
                 _language = language;
                 _country = country;
         
                 RequestNotificationPermission();
+                isFirebaseEnable = true;
+
+                // 如果已经有userID,立即初始化Firebase
+                if (!string.IsNullOrEmpty(userID))
+                {
+                    GetInstance().InitializeFirebase();
+                }
 
                 // Set a flag here to indicate whether Firebase is ready to use by your app.
             } 
             else {
                 Debug.Log("当前设备 谷歌框架等依赖缺失 不支持Firebase");
+                isFirebaseEnable = false;
                 // UnityEngine.Debug.LogError(System.String.Format(
                 //     "Could not resolve all Firebase dependencies: {0}", dependencyStatus));
                 // Firebase Unity SDK is not safe to use here.
@@ -75,7 +86,7 @@ public class FirebaseCloudMessage : MonoBehaviour
 
     /// <summary>
     /// 设置玩家ID
-    /// </summary>
+    /// </summary>w
     /// <param name="userid"></param>
     public static void SetUserID(string userid)
     {
@@ -83,9 +94,19 @@ public class FirebaseCloudMessage : MonoBehaviour
         Debug.Log($"Firebase 功能测试 设置玩家ID{userid}");
 #endif
         userID = userid;
+        
 #if !UNITY_EDITOR
-        // 设置完用户ID后,初始化Firebase获取token
-        GetInstance().InitializeFirebase();
+        // 如果Firebase可用,直接初始化;如果不可用,等依赖检查完成后再初始化
+        // 如果Firebase还没初始化完成,userID已经缓存了,等Init完成后再调用InitializeFirebase
+        if (isFirebaseEnable)
+        {
+            GetInstance().InitializeFirebase();
+            
+            if (!String.IsNullOrEmpty(fcmToken) && !String.IsNullOrEmpty(userID))
+            {
+                PostToServer();
+            }
+        }
 #endif
     }
     /// <summary>
@@ -94,6 +115,11 @@ public class FirebaseCloudMessage : MonoBehaviour
     /// <param name="topic"></param>
     public static void SubscribeTopic(string topicJsonStr)
     {
+        if (!isFirebaseEnable)
+        {
+            return;
+        }
+        
         if (String.IsNullOrEmpty(fcmToken))
         {
             Debug.LogError("灵光系统 无法获得fcm token令牌");
@@ -125,6 +151,11 @@ public class FirebaseCloudMessage : MonoBehaviour
     /// <param name="topicJsonStr"></param>
     public static void unSubscribeTopic(string topicJsonStr)
     {
+        if (!isFirebaseEnable)
+        {
+            return;
+        }
+        
         if (String.IsNullOrEmpty(fcmToken))
         {
             Debug.LogError("灵光系统 无法获得fcm token令牌");
@@ -175,11 +206,24 @@ public class FirebaseCloudMessage : MonoBehaviour
     /// </summary>
     private void InitializeFirebase()
     {
+        if (!isFirebaseEnable)
+        {
+            return;
+        }
+        
         // 避免重复初始化
         if (inited)
         {
             return;
         }
+        
+        // 检查是否有userID,没有的话等待SetUserID调用
+        if (string.IsNullOrEmpty(userID))
+        {
+            Debug.Log("等待userID设置后再初始化Firebase");
+            return;
+        }
+        
         inited = true;
         
         Firebase.Messaging.FirebaseMessaging.MessageReceived += OnMessageReceived;
@@ -191,6 +235,11 @@ public class FirebaseCloudMessage : MonoBehaviour
     /// </summary>
     private void RemoveFirebase()
     {
+        if (!isFirebaseEnable)
+        {
+            return;
+        }
+        
         Firebase.Messaging.FirebaseMessaging.MessageReceived -= OnMessageReceived;
         Firebase.Messaging.FirebaseMessaging.TokenReceived -= OnTokenReceived;
         inited = false;
@@ -234,6 +283,25 @@ public class FirebaseCloudMessage : MonoBehaviour
             }
         }
         
+        //消息中获取traceId 发送给服务端 触达率
+        if (e.Message.Data.Count > 0)
+        {
+            foreach (KeyValuePair<string, string> item in e.Message.Data)
+            {
+                if (item.Key.Equals("traceId"))
+                {
+                    string traceId = item.Value;
+#if Firebase_Debug
+                    Debug.Log($"Firebase 功能测试 触达率id:{traceId}");
+#endif
+
+                    // Debug.Log("OnMessageReceived traceId:" + traceId);
+                    CoroutineManager.Instance.StartManagedCoroutine(NotificationPostRequest(firebaseMessageNotificationUrl, traceId));
+                    
+                }
+            }
+        }
+        
     }
 
     private void OnTokenReceived(object sender, Firebase.Messaging.TokenReceivedEventArgs token)
@@ -248,7 +316,7 @@ public class FirebaseCloudMessage : MonoBehaviour
     /// <summary>
     /// 发送给灵光服务器
     /// </summary>
-    private void PostToServer()
+    private static void PostToServer()
     {
         SetPlatform();
         var deviceData = new
@@ -269,7 +337,7 @@ public class FirebaseCloudMessage : MonoBehaviour
     /// <summary>
     /// 设置 移动平台 & 渠道号相关(渠道号和服务端确认即可)
     /// </summary>
-    private void SetPlatform()
+    private static void SetPlatform()
     {
         switch (Application.platform)
         {
@@ -463,10 +531,7 @@ public class FirebaseCloudMessage : MonoBehaviour
 
             if (request.result != UnityWebRequest.Result.Success)
             {
-#if Firebase_Debug
-                Debug.Log($"Firebase 功能测试,错误码:{request.error}");
-#endif
-                Debug.LogWarning("Equipment reporting failed." + request.error);
+                Debug.LogError($"灵光系统 错误信息:{request.error}");
                 yield break;
             }
 
@@ -483,7 +548,34 @@ public class FirebaseCloudMessage : MonoBehaviour
             }
         };
     }
+    
+    private IEnumerator NotificationPostRequest(string url,string traceId)
+    {
+        using (UnityWebRequest request = UnityWebRequest.PostWwwForm(url, "POST"))
+        {
+            byte[] bodyRaw = System.Text.Encoding.UTF8.GetBytes(traceId);
+
+            request.uploadHandler = new UploadHandlerRaw(bodyRaw);
+            request.downloadHandler = new DownloadHandlerBuffer();
+            request.SetRequestHeader("Content-Type", "text/plain");
+            
+            yield return request.SendWebRequest();
+
+            if (request.result != UnityWebRequest.Result.Success)
+            {
+                Debug.LogWarning("灵光系统 触达率 错误信息:" + request.error);
+                yield break;
+            }
+
+            var response = JsonUtility.FromJson<PostResponse>(request.downloadHandler.text);
+            if (response.code != 0)
+            {
+                Debug.LogWarning("灵光系统 触达率 错误码:" + response.code);
+            }
+        };
+    }
 }
+
 ```
 
 ## NotificationServiceExtensionCreator.cs
@@ -500,13 +592,14 @@ using UnityEditor.iOS.Xcode.PBX;
 using System.Diagnostics;
 using System.Threading;
 using System;
+using System.Text.RegularExpressions;
 using Debug = UnityEngine.Debug;
 
 public static class FirebaseNotificationServiceExtensionCreator
 {
     private const string ExtensionName = "FirebaseNotificationService";
 
-    [PostProcessBuild(200)]
+    [PostProcessBuild(99999)]
     public static void OnPostProcessBuild(BuildTarget target, string buildPath)
     {
         if (target != BuildTarget.iOS) return;
@@ -756,104 +849,33 @@ public static class FirebaseNotificationServiceExtensionCreator
         
         if (!podfileContent.Contains("target 'FirebaseNotificationService'"))
         {
-            // 检测 UnityFramework 中的 Firebase 版本
-            string firebaseVersion = DetectFirebaseVersionInUnityFramework(podfileContent);
+            // 查找 UnityFramework target 并添加子 target
+            string pattern = @"(target\s+'UnityFramework'\s+do[^}]*?)(end)";
+            string replacement = $"$1\n  target 'FirebaseNotificationService' do\n  end\n$2";
             
-            // 在文件末尾添加 FirebaseNotificationService target
-            string firebaseTargetContent = $@"
-
-target 'FirebaseNotificationService' do
-  pod 'Firebase/Messaging', '{firebaseVersion}'
-end
-
-use_frameworks! :linkage => :static";
-            
-            podfileContent += firebaseTargetContent;
-            File.WriteAllText(podfilePath, podfileContent);
-            
-#if Firebase_Debug
-            Debug.Log($"FireBase功能测试 在现有 Podfile 中添加 FirebaseNotificationService target,使用 Firebase 版本: {firebaseVersion}");
-#endif
-        }
-        else
-        {
-#if Firebase_Debug
-            Debug.Log("FireBase功能测试 FirebaseNotificationService target 已存在于 Podfile 中");
-#endif
-        }
-    }
-
-    /// <summary>
-    /// 检测 UnityFramework target 中的 Firebase 版本
-    /// </summary>
-    private static string DetectFirebaseVersionInUnityFramework(string podfileContent)
-    {
-        // 默认版本
-        string defaultVersion = "12.0.0";
-        
-        try
-        {
-            // 查找 UnityFramework target 中的 Firebase 版本
-            int unityFrameworkStart = podfileContent.IndexOf("target 'UnityFramework' do");
-            if (unityFrameworkStart == -1)
-            {
-                Debug.LogWarning("FireBase功能测试 未找到 UnityFramework target,使用默认版本: " + defaultVersion);
-                return defaultVersion;
-            }
-            
-            int unityFrameworkEnd = podfileContent.IndexOf("end", unityFrameworkStart);
-            if (unityFrameworkEnd == -1)
-            {
-                Debug.LogWarning("FireBase功能测试 UnityFramework target 格式错误,使用默认版本: " + defaultVersion);
-                return defaultVersion;
-            }
-            
-            // 提取 UnityFramework target 的内容
-            string unityFrameworkContent = podfileContent.Substring(unityFrameworkStart, unityFrameworkEnd - unityFrameworkStart);
-            
-            // 查找 Firebase 相关的 pod 声明
-            string[] firebasePods = { "Firebase/Analytics", "Firebase/Core", "Firebase/Messaging", "Firebase" };
-            string detectedVersion = null;
-            
-            foreach (string pod in firebasePods)
-            {
-                int podIndex = unityFrameworkContent.IndexOf($"pod '{pod}'");
-                if (podIndex != -1)
-                {
-                    // 找到 pod 声明,提取版本号
-                    int versionStart = unityFrameworkContent.IndexOf("'", podIndex + pod.Length + 6);
-                    if (versionStart != -1)
-                    {
-                        int versionEnd = unityFrameworkContent.IndexOf("'", versionStart + 1);
-                        if (versionEnd != -1)
-                        {
-                            detectedVersion = unityFrameworkContent.Substring(versionStart + 1, versionEnd - versionStart - 1);
-                            break;
-                        }
-                    }
-                }
-            }
-            
-            if (!string.IsNullOrEmpty(detectedVersion))
+            if (System.Text.RegularExpressions.Regex.IsMatch(podfileContent, pattern, System.Text.RegularExpressions.RegexOptions.Singleline))
             {
+                podfileContent = System.Text.RegularExpressions.Regex.Replace(podfileContent, pattern, replacement, System.Text.RegularExpressions.RegexOptions.Singleline);
+                File.WriteAllText(podfilePath, podfileContent);
+                
 #if Firebase_Debug
-                Debug.Log($"FireBase功能测试 检测到 UnityFramework 中的 Firebase 版本: {detectedVersion}");
+                Debug.Log("FireBase功能测试 在 UnityFramework target 内添加 FirebaseNotificationService 子 target");
 #endif
-                return detectedVersion;
             }
             else
             {
-                Debug.LogWarning("FireBase功能测试 未在 UnityFramework 中找到 Firebase 版本信息,使用默认版本: " + defaultVersion);
-                return defaultVersion;
+                Debug.LogWarning("FireBase功能测试 未找到 UnityFramework target,无法添加子 target");
             }
         }
-        catch (Exception ex)
+        else
         {
-            Debug.LogError($"FireBase功能测试 检测 Firebase 版本时发生错误: {ex.Message}");
-            return defaultVersion;
+#if Firebase_Debug
+            Debug.Log("FireBase功能测试 FirebaseNotificationService target 已存在于 Podfile 中");
+#endif
         }
     }
 
+
     /// <summary>
     /// 执行 pod install 安装 Firebase 通知扩展组件
     /// </summary>

+ 2 - 2
笔记文件/日记/2025_09_17_星期三.md

@@ -23,8 +23,8 @@
 
 - [x] 今晚记得买水
 - [x] 今晚记得弄一包纸巾到背包里
-- [ ] 查一下 杂粮粥做法
-- [ ] 弄一下 mac svn软件的使用总结
+- [x] 查一下 杂粮粥做法
+- [x] 弄一下 mac svn软件的使用总结
 - [x] 合并lgcollect服务端的修改,同步到外网和内网测试服
 - [x] 处理 安卓16k对齐
 ---

+ 1 - 1
笔记文件/日记/2025_09_18_星期四.md

@@ -23,7 +23,7 @@
 
 - [x] 同步一下 facebook 新系统导致安装数异常情况
 - [x] 记得剪头发
-- [ ] 灵动新版本,要简单做一下 压力测试 确认 数据库增删查改 正常
+- [x] 灵动新版本,要简单做一下 压力测试 确认 数据库增删查改 正常
 ---
 
 # Journal

+ 11 - 2
笔记文件/日记/2025_09_19_星期五.md

@@ -21,7 +21,16 @@
 
 # 今日任务
 
-- [ ] 
+- [ ] 要协助升级一下谷歌插件 到高版本
+- [ ] 记得下周 要把家里的hub版本,从团结引擎,替换成国际版
+- [ ] 引导系统 添加逻辑 可以通过触发器,跳转到,其他引导序列
+- [ ] 解析一下 碰撞器逻辑
+- [ ] 完善ECS笔记
+- [ ] 这周要写一下 双周报
 ---
-[[安卓aar 构建工具链 AGP问题处理]]
+[[sqlite 安卓aar  配合 unity 2022 构建工具链 AGP问题处理]]
+[[mac软件安装后,文件损坏处理  以macSvn软件为例]]
+[[classes.jar]]
+[[PostProcessBuild序号]]
+[[podfile共享依赖引用]]
 # Journal

BIN
笔记文件/附件/Pasted image 20250919172535.png


BIN
笔记文件/附件/Pasted image 20250919172707.png


BIN
笔记文件/附件/Pasted image 20250919173014.png


BIN
笔记文件/附件/Pasted image 20250919173036.png


BIN
笔记文件/附件/img_v3_02on_ac6fda0a-c9b2-4335-8269-a1fb6bc192hu.jpg


BIN
笔记文件/附件/img_v3_02on_ae951a65-6a68-491b-b401-da9ba715cehu.jpg