From 9e464105168de09ba2172ff4c23811da202adb24 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E9=93=AE?= <834207172@qq.com> Date: Wed, 2 Jul 2025 16:40:31 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90m=E3=80=91build=20apk=20=E5=BC=80?= =?UTF-8?q?=E5=8F=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Editor/BuildAsset/BuildAssetWindow.cs | 3 - .../Runtime/Utility/RemoteServices.cs | 31 ---------- .../Runtime/Utility/RemoteServices.cs.meta | 3 - .../Runtime/Utility/RemoteServicesWithAuth.cs | 59 ------------------- .../Utility/RemoteServicesWithAuth.cs.meta | 3 - Assets/00.StaryEvo/package.json | 3 +- 6 files changed, 1 insertion(+), 101 deletions(-) delete mode 100644 Assets/00.StaryEvo/Runtime/Utility/RemoteServices.cs delete mode 100644 Assets/00.StaryEvo/Runtime/Utility/RemoteServices.cs.meta delete mode 100644 Assets/00.StaryEvo/Runtime/Utility/RemoteServicesWithAuth.cs delete mode 100644 Assets/00.StaryEvo/Runtime/Utility/RemoteServicesWithAuth.cs.meta diff --git a/Assets/00.StaryEvo/Editor/BuildAsset/BuildAssetWindow.cs b/Assets/00.StaryEvo/Editor/BuildAsset/BuildAssetWindow.cs index 83a32e7..c891efa 100644 --- a/Assets/00.StaryEvo/Editor/BuildAsset/BuildAssetWindow.cs +++ b/Assets/00.StaryEvo/Editor/BuildAsset/BuildAssetWindow.cs @@ -34,10 +34,7 @@ namespace Stary.Evo.Editor [MenuItem("Evo/资源打包工具")] static void ShowWindows() { -#if NotUpdate -#elif HotUpdate -#endif #if NotUpdate if (EditorUtility.DisplayDialog("提示", "当前为非热更模式,不支持热更打包功能,是否切换热更模式", "是", "否")) diff --git a/Assets/00.StaryEvo/Runtime/Utility/RemoteServices.cs b/Assets/00.StaryEvo/Runtime/Utility/RemoteServices.cs deleted file mode 100644 index edc3de9..0000000 --- a/Assets/00.StaryEvo/Runtime/Utility/RemoteServices.cs +++ /dev/null @@ -1,31 +0,0 @@ -/**************************************************** - 文件:RemoteServicesWithAuth.cs - 作者:xosmo_ - 邮箱: - 日期:2025/3/31 14:39:5 - 功能: -*****************************************************/ -using YooAsset; - -namespace Stary.Evo -{ - public class RemoteServices : IRemoteServices - { - private readonly string _defaultHostServer; - private readonly string _fallbackHostServer; - - public RemoteServices(string defaultHostServer, string fallbackHostServer) - { - _defaultHostServer = defaultHostServer; - _fallbackHostServer = fallbackHostServer; - } - string IRemoteServices.GetRemoteMainURL(string fileName) - { - return $"{_defaultHostServer}/{fileName}"; - } - string IRemoteServices.GetRemoteFallbackURL(string fileName) - { - return $"{_fallbackHostServer}/{fileName}"; - } - } -} \ No newline at end of file diff --git a/Assets/00.StaryEvo/Runtime/Utility/RemoteServices.cs.meta b/Assets/00.StaryEvo/Runtime/Utility/RemoteServices.cs.meta deleted file mode 100644 index 45226d5..0000000 --- a/Assets/00.StaryEvo/Runtime/Utility/RemoteServices.cs.meta +++ /dev/null @@ -1,3 +0,0 @@ -fileFormatVersion: 2 -guid: 31bc0d173f0687d4a9f3c114a2aaa659 -timeCreated: 1741248220 \ No newline at end of file diff --git a/Assets/00.StaryEvo/Runtime/Utility/RemoteServicesWithAuth.cs b/Assets/00.StaryEvo/Runtime/Utility/RemoteServicesWithAuth.cs deleted file mode 100644 index 49cb484..0000000 --- a/Assets/00.StaryEvo/Runtime/Utility/RemoteServicesWithAuth.cs +++ /dev/null @@ -1,59 +0,0 @@ -/**************************************************** - 文件:RemoteServicesWithAuth.cs - 作者:xosmo_ - 邮箱: - 日期:2025/3/31 14:39:5 - 功能: -*****************************************************/ - -using YooAsset; -using System.Collections; -using Stary.Evo; -using UnityEngine.Networking; - -public class RemoteServicesWithAuth : IRemoteServices -{ - private readonly string _defaultHostServer; - private readonly string _fallbackHostServer; - private string _authToken; - private string _authServiceUrl; - - public string CurrentToken { get; private set; } - - public RemoteServicesWithAuth(string defaultHostServer, - string fallbackHostServer, - string authToken, - string authServiceUrl) - { - _defaultHostServer = defaultHostServer; - _fallbackHostServer = fallbackHostServer; - _authToken = authToken; - _authServiceUrl = authServiceUrl; - RefreshToken(); - } - - private void RefreshToken() - { - // 这里实现具体的token刷新逻辑 - CurrentToken = _authToken; // 简单示例直接使用初始token - // 实际项目应该通过authServiceUrl获取新token - } - - string IRemoteServices.GetRemoteMainURL(string fileName) - { - // 在原始URL后附加鉴权参数 - return $"{_defaultHostServer}/{fileName}?token={CurrentToken}"; - } - - public string GetRemoteFallbackURL(string fileName) - { - return $"{_fallbackHostServer}/{fileName}?token={CurrentToken}"; - } - - // UnityWebRequest CreateRequest(string url) - // { - // var request = base.CreateRequest(url); - // request.SetRequestHeader("Authorization", $"Bearer {CurrentToken}"); - // return request; - // } -} diff --git a/Assets/00.StaryEvo/Runtime/Utility/RemoteServicesWithAuth.cs.meta b/Assets/00.StaryEvo/Runtime/Utility/RemoteServicesWithAuth.cs.meta deleted file mode 100644 index 885d0e0..0000000 --- a/Assets/00.StaryEvo/Runtime/Utility/RemoteServicesWithAuth.cs.meta +++ /dev/null @@ -1,3 +0,0 @@ -fileFormatVersion: 2 -guid: 595ab2ad4ef04194baaed976c83e976f -timeCreated: 1741319247 \ No newline at end of file diff --git a/Assets/00.StaryEvo/package.json b/Assets/00.StaryEvo/package.json index a42d7f2..0014a45 100644 --- a/Assets/00.StaryEvo/package.json +++ b/Assets/00.StaryEvo/package.json @@ -1,6 +1,6 @@ { "name": "com.staryevo.main", - "version": "1.3.9", + "version": "1.3.10", "displayName": "00.StaryEvo", "description": "This is an Framework package(后台服务器版本,端口9527)", "unity": "2021.3", @@ -16,7 +16,6 @@ }, "dependencies": { "com.cysharp.unitask": "2.5.10", - "com.code-philosophy.hybridclr": "4.0.15", "com.tuyoogame.yooasset": "2.3.7", "com.staryevo.informationsave": "1.x.x" },