From 441d639523cde4409f83a8989f45341817a78229 Mon Sep 17 00:00:00 2001 From: OnestarLee Date: Mon, 4 Nov 2024 15:33:38 +0900 Subject: [PATCH] release 4.0.1 --- CHANGELOG.md | 4 ++++ .../UnityPlatform/JsWebSocket/JsNativeWebSocketBridge.cs | 5 ++++- Runtime/Scripts/UnityPlatform/JsWebSocket/JsWebSocket.cs | 5 ++++- .../UnityPlatform/JsWebSocket/JsWebSocketStateType.cs | 7 +++---- Runtime/Scripts/UnityPlatform/UnityPlatformApplication.cs | 2 +- package.json | 2 +- 6 files changed, 17 insertions(+), 8 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5b90a66..973e079 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Change Log +## 4.0.1 (Nov 4, 2024) +### Features +- Fixed an issue where builds failed on the Windows platform + ## 4.0.0 (Sep 25, 2024) ### Features - Added support for WebGL diff --git a/Runtime/Scripts/UnityPlatform/JsWebSocket/JsNativeWebSocketBridge.cs b/Runtime/Scripts/UnityPlatform/JsWebSocket/JsNativeWebSocketBridge.cs index 77d1e02..4d0e403 100644 --- a/Runtime/Scripts/UnityPlatform/JsWebSocket/JsNativeWebSocketBridge.cs +++ b/Runtime/Scripts/UnityPlatform/JsWebSocket/JsNativeWebSocketBridge.cs @@ -1,3 +1,4 @@ +#if UNITY_WEBGL && !UNITY_EDITOR using System.Collections.Generic; using System.Runtime.InteropServices; @@ -122,4 +123,6 @@ internal static void Close(int inClientId) CloseByNative(inClientId); } } -} \ No newline at end of file +} + +#endif //#if UNITY_WEBGL && !UNITY_EDITOR \ No newline at end of file diff --git a/Runtime/Scripts/UnityPlatform/JsWebSocket/JsWebSocket.cs b/Runtime/Scripts/UnityPlatform/JsWebSocket/JsWebSocket.cs index 3de3d7e..7fcebf5 100644 --- a/Runtime/Scripts/UnityPlatform/JsWebSocket/JsWebSocket.cs +++ b/Runtime/Scripts/UnityPlatform/JsWebSocket/JsWebSocket.cs @@ -1,3 +1,4 @@ +#if UNITY_WEBGL && !UNITY_EDITOR using System; using System.Net; @@ -154,4 +155,6 @@ internal void OnWebSocketClosed() } } } -} \ No newline at end of file +} + +#endif // #if UNITY_WEBGL && !UNITY_EDITOR \ No newline at end of file diff --git a/Runtime/Scripts/UnityPlatform/JsWebSocket/JsWebSocketStateType.cs b/Runtime/Scripts/UnityPlatform/JsWebSocket/JsWebSocketStateType.cs index 7e2eac4..99d469e 100644 --- a/Runtime/Scripts/UnityPlatform/JsWebSocket/JsWebSocketStateType.cs +++ b/Runtime/Scripts/UnityPlatform/JsWebSocket/JsWebSocketStateType.cs @@ -1,7 +1,4 @@ -// -// Copyright (c) 2022 Sendbird, Inc. -// - +#if UNITY_WEBGL && !UNITY_EDITOR namespace Sendbird.Chat { internal enum JsWebSocketStateType @@ -13,3 +10,5 @@ internal enum JsWebSocketStateType Closed, } } + +#endif //#if UNITY_WEBGL && !UNITY_EDITOR \ No newline at end of file diff --git a/Runtime/Scripts/UnityPlatform/UnityPlatformApplication.cs b/Runtime/Scripts/UnityPlatform/UnityPlatformApplication.cs index 25da306..47de8e0 100644 --- a/Runtime/Scripts/UnityPlatform/UnityPlatformApplication.cs +++ b/Runtime/Scripts/UnityPlatform/UnityPlatformApplication.cs @@ -9,7 +9,7 @@ namespace Sendbird.Chat { internal class UnityPlatformApplication : IPlatformApplication { - string IPlatformApplication.SdkVersion => "4.0.0"; + string IPlatformApplication.SdkVersion => "4.0.1"; string IPlatformApplication.PlatformName => "Unity"; string IPlatformApplication.PlatformVersion => Application.unityVersion; string IPlatformApplication.OsName => Application.platform.ToString(); diff --git a/package.json b/package.json index dec4c93..e10fcff 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "com.sendbird.chat", "displayName": "SendbirdChat", - "version": "4.0.0", + "version": "4.0.1", "documentationUrl": "https://github.com/sendbird/sendbird-chat-sdk-unity", "changelogUrl": "https://github.com/sendbird/sendbird-chat-sdk-unity/blob/master/CHANGELOG.md", "licensesUrl": "https://github.com/sendbird/sendbird-chat-sdk-unity/blob/master/LICENSE.md",