From 9a25a845c174e61e68db3e64a49e6afbf026b76b Mon Sep 17 00:00:00 2001 From: uurha Date: Mon, 14 Oct 2024 03:51:28 +0200 Subject: [PATCH 1/2] Fix build compilation issue --- Assets/BetterCommons | 2 +- Assets/BetterLogger/Runtime/Logger/LogBuilder.cs | 4 +++- Assets/BetterLogger/Runtime/Logger/LogHandlerInjector.cs | 4 +++- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/Assets/BetterCommons b/Assets/BetterCommons index 2a0f166..f2721d8 160000 --- a/Assets/BetterCommons +++ b/Assets/BetterCommons @@ -1 +1 @@ -Subproject commit 2a0f166d3b259f098e5bc658800190b8258603bc +Subproject commit f2721d8c2b7c76e75d1dfb849b383b12737bd2ee diff --git a/Assets/BetterLogger/Runtime/Logger/LogBuilder.cs b/Assets/BetterLogger/Runtime/Logger/LogBuilder.cs index 23ad5ee..3db8ae5 100644 --- a/Assets/BetterLogger/Runtime/Logger/LogBuilder.cs +++ b/Assets/BetterLogger/Runtime/Logger/LogBuilder.cs @@ -14,8 +14,10 @@ public static class LogBuilder private const int JumpCount = 4; private const string Null = "null"; - + +#if UNITY_EDITOR [InitializeOnLoadMethod] +#endif [RuntimeInitializeOnLoadMethod] private static void Initialize() { diff --git a/Assets/BetterLogger/Runtime/Logger/LogHandlerInjector.cs b/Assets/BetterLogger/Runtime/Logger/LogHandlerInjector.cs index cb3bab4..f207398 100644 --- a/Assets/BetterLogger/Runtime/Logger/LogHandlerInjector.cs +++ b/Assets/BetterLogger/Runtime/Logger/LogHandlerInjector.cs @@ -11,8 +11,10 @@ static LogHandlerInjector() { _logHandler = new LogHandler(); } - + +#if UNITY_EDITOR [InitializeOnLoadMethod] +#endif [RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.AfterAssembliesLoaded)] public static void OnInitialize() { From 2d56f8082deed7b37e99b9d2cc194d1cd44bbd73 Mon Sep 17 00:00:00 2001 From: uurha Date: Mon, 14 Oct 2024 03:51:40 +0200 Subject: [PATCH 2/2] Update package.json --- Assets/BetterLogger/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Assets/BetterLogger/package.json b/Assets/BetterLogger/package.json index a0e60f7..4aec0dc 100644 --- a/Assets/BetterLogger/package.json +++ b/Assets/BetterLogger/package.json @@ -1,7 +1,7 @@ { "name": "com.tdw.better.logger", "displayName": "Better Logger", - "version": "0.1.3", + "version": "0.1.4", "unity": "2021.3", "description": " ", "dependencies": {