Skip to content

Commit

Permalink
Merge pull request #2 from sendbird/release-v4.0.0-beta
Browse files Browse the repository at this point in the history
Release v4.0.0-beta
  • Loading branch information
OnestarLee authored Aug 25, 2023
2 parents 34deb5e + 273dd92 commit e69d789
Show file tree
Hide file tree
Showing 1,342 changed files with 67,268 additions and 319 deletions.
172 changes: 9 additions & 163 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,166 +1,12 @@
Changelog
=========
# v3.0.30 (Jun. 7, 2023)
* Support Websocket TLS 1.2
# Change Log

# v3.0.29 (Oct. 12, 2021)
* Fix SetFile() Bug.
## 4.0.0-beta (Aug 25, 2023)

# v3.0.28 (July 16, 2021)
* Add Public Interface For Emoji
* - GetEmoji
* - GetAllEmoji
* - GetEmojiCategory
* Bug Fix
### Features
- Group channel collection
- Message collection
- Pinned message
- Message threading
- Adding extra data to a message
- Multiple App ID support

# v3.0.27 (Jun 14, 2021)
* Add operator list query.

# v3.0.26 (May 25, 2021)
* Add operator related methods.

# v3.0.25 (May 14, 2021)
* Monior bug fix.

# v3.0.24 (May 7, 2021)
* Add public group channel name search.

# v3.0.23 (Apr 20, 2021)
* Add missing method for UserMessageParams.
* Stability improvement.

# v3.0.22 (Mar 31, 2021)
* Add ApplicationUserListQuery.
* Statbility improvement.

# v3.0.21 (Mar 10, 2021)
* Bug fix.

# v3.0.20 (Mar 9, 2021)
* Bug fix.

# v3.0.19 (Jan 9, 2021)
* Fix FileMessage.GetSender() thrown an exception in some cases.
* UserMessage.Sender property is deprecated. Use UserMessage.GetSender() instead.

# v3.0.18 (Oct 22, 2020)
* File encryption support.

# v3.0.17 (Jun 19, 2020)
* Chat history reset feature added.
* User mention feature added.
* User event handler added.
* Performance improved.

# v3.0.16 (Jun 1, 2020)
* Retrieval of banned/unmuted user list added.
* Channel hide/archive feature added.
* User/message reporting feature added.

# v3.0.15 (May 15, 2020)
* Introduced group channel invitation feature.
* Introduced message update feature.
* Added channel creation custom URL option.

# v3.0.14 (NOV 30, 2019)
* Added `BanUser`, `UnbanUser` in GroupChannel
* Added creating and updating GroupChannel with operators.

# v3.0.13 (JUL 25, 2019)
* Improved ConnectionHandler.

# v3.0.12 (JUL 28, 2018)
* Improved SendBird server connection.

# v3.0.11 (JUN 18, 2018)
* Added CustomTypesFilter in GroupChannelListQuery to search channels based on CustomType.

# v3.0.10 (May 23, 2018)
* Updated WebSocket lib version.

# v3.0.9 (Jan 26, 2018)
* Fixed signing assembly issue on Windows build.

# v3.0.8 (Jan 24, 2018)
* Reconnect() method added for explicit reconnection.
* Application ID re-initialization added.

# v3.0.7 (Jan 18, 2018)
* Improved stability.

# v3.0.6 (Apr 17, 2017)
* Fixed message deletion issue on Unity 3d.

# v3.0.5 (Jan 20, 2017)
* Speed up initial loading on some platforms.

# v3.0.4 (Jan 17, 2017)
* Improved stability.
* Fixed read receipt reset issue.

# v3.0.3 (DEC 14, 2016)
* Improved stability.

# v3.0.2 (Dec 9, 2016)
* Improved performance.
* Improved stability.
* Added user IDs filters and query type to GroupChannelListQuery.
* Added channel custom type for OpenChannel and GroupChannel.
* Fixed to call ChannelHandler.onChannelChanged when unread message count or last message has been updated.
* Fixed to update last message of group channel when UserMessage or FileMessage is successfully sent.
* Added custom type to messages.
* Added group channel list search by member nicknames and user IDs.
* Added creating and updating channel cover image with binary file.

# v3.0.1 (Nov 21, 2016)
* Faster connection time.
* Improved stability.

# v3.0.0 (Nov 7, 2016)
* `SendBird .NET SDK v3`.

# v2.3.0 (Jul 27, 2016)
* Performance Improvement.
* Unity SDK is separated.
* Now you can set `SendBirdSDK.CommonVar.IS_LOGGING` (`true`, `false`) you can see logs from SendBird SDK.

# v2.2.0 (Jun 14, 2016)
* SDK Internal timer logic is changed.
* Performance Improvement
* Fixed a bug `NullReferenceException` in `SendBirdSDK.SendMessage`

# v2.1.2 (Jun 10, 2016)
* SendBirdSDK.GetConnectionState() is added.

# v2.1.1 (May 24, 2016)
* Performance improvement

# v2.0.0 (May 17, 2016)
* Added routing for getting server address
* `websocket-sharp.dll` file is changed, please update your existing dll.
* Fixed asynchronous API request bugs

# v1.2.1 (Apr 12, 2016)
* Updated Internal Settings

# v1.2.0 (Apr 7, 2016)
* Updated All Internal API request(asynchronous)

# v1.1.1 (Mar 21, 2016)
* Fixed a bug that `SendBird.Login` fails to login again with different User ID.
* Fixed `SendBird.Model.SystemEvent` data field parsing error.

# v1.1.0 (Mar 17, 2016)
* Added `MemberCountQuery` which returns total member count and online member count.
* Updated `MemberListQuery`. You can select to return all members list or online members list using onlineOnly.
* Added `ChannelMetaDataQuery`
* Added `ChannelMetaCounterQuery`
* Added `isOnline`, `lastSeenAt` to `User` Model
* Added `isSoftMuted` to `Message`, `FileLink`
* Added `isMuted` to `User`, `Member`, `Sender`
* Added `SystemEvent` and `OnSystemEventReceived` to `SendBirdEventHandler` for system events such as `join` or `leave` to/from `channels`.
* Added `OnMutedMessageReceived/OnMutedFileReceived` to `SendBirdEventHandler` for soft muted user's messages and files.
* Deleted `SendBirdNotificationHandler`, all events are moved to `SendBirdEventHandler`

# v1.0.0
* `SendBird .NET SDK` Release
3 changes: 3 additions & 0 deletions CHANGELOG.md.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions Documentation~/Images.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added Documentation~/Images/import_sample.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 13 additions & 0 deletions Documentation~/Sample.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Samples

## Step 1: Import samples in project
To get these samples, Push the `Import into Project` button on Package Manager.

| ![img.png](Images/import_sample.png) |
|--------------------------------------|

## Step 2: Open sample scene
Open `SimpleChatSample.unity` scene.

| ![img.png](Images/open_sample_scene.png) |
|------------------------------------------|
3 changes: 3 additions & 0 deletions Documentation~/Sample.md.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

103 changes: 103 additions & 0 deletions Editor/LinkXmlMergeBuildProcess.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
namespace Sendbird.Calls.Editor
{
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using System.Xml.Linq;
using UnityEditor.Build;
using UnityEditor.Build.Reporting;
using UnityEditor.PackageManager;
using UnityEditor.PackageManager.Requests;
using UnityEngine;

internal class LinkXmlMergeBuildProcess : IPreprocessBuildWithReport, IPostprocessBuildWithReport
{
private const string LINK_XML_FILE_FULL_NAME = "SendbirdLink.xml";

private readonly string _tempDirPath = $"{Application.dataPath}/BuildTemp/";
private readonly string _tempDirMetaPath = $"{Application.dataPath}/BuildTemp.meta";
private string LinkFilePath => $"{_tempDirPath}link.xml";

// We execute the script after the others ones
int IOrderedCallback.callbackOrder => 10;

public async void OnPreprocessBuild(BuildReport inReport)
{
await CreateMergedLinkFromPackages();
}

public void OnPostprocessBuild(BuildReport inReport)
{
if (File.Exists(LinkFilePath)) File.Delete(LinkFilePath);

if (Directory.Exists(_tempDirPath)) Directory.Delete(_tempDirPath, true);

if (File.Exists(_tempDirMetaPath)) File.Delete(_tempDirMetaPath);
}

private async Task CreateMergedLinkFromPackages()
{
ListRequest packetListRequest = Client.List();

do
{
await Task.Yield();
} while (!packetListRequest.IsCompleted);

switch (packetListRequest.Status)
{
case StatusCode.Failure:
{
Debug.LogError(packetListRequest.Error.message);
return;
}
case StatusCode.Success:
{
List<string> xmlPathList = new List<string>();
foreach (PackageInfo package in packetListRequest.Result)
{
string packageResolvedPath = package.resolvedPath;
xmlPathList.AddRange(Directory.EnumerateFiles(packageResolvedPath, LINK_XML_FILE_FULL_NAME, SearchOption.AllDirectories).ToList());
}

if (xmlPathList.Count <= 0) return;

XDocument[] linkXmlArray = xmlPathList.Select(XDocument.Load).ToArray();

XDocument combinedXmlDocument = linkXmlArray.First();

foreach (XDocument xDocument in linkXmlArray.Where(inXML => inXML != combinedXmlDocument))
{
if (xDocument?.Root != null)
{
combinedXmlDocument?.Root?.Add(xDocument.Root.Elements());
}
}

if (Directory.Exists(_tempDirPath) == false)
{
Directory.CreateDirectory(_tempDirPath);
}
else if (File.Exists(LinkFilePath))
{
XDocument existLinkXmlDocument = XDocument.Load(LinkFilePath);
if (existLinkXmlDocument.Root != null)
{
combinedXmlDocument?.Root?.Add(existLinkXmlDocument.Root.Elements());
}
}

combinedXmlDocument?.Save(LinkFilePath);
break;
}
case StatusCode.InProgress:
default:
{
Debug.LogWarning($"LinkXmlMergeBuildProcess PacketListStatus:{packetListRequest.Status}");
break;
}
}
}
}
}
3 changes: 3 additions & 0 deletions Editor/LinkXmlMergeBuildProcess.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions Editor/Sendbird.Chat.Editor.asmdef
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"name": "Sendbird.Chat.Editor",
"references": [],
"includePlatforms": [
"Editor"
],
"excludePlatforms": [],
"allowUnsafeCode": true,
"overrideReferences": false,
"precompiledReferences": [],
"autoReferenced": true,
"defineConstraints": [],
"versionDefines": [],
"noEngineReferences": false
}
7 changes: 7 additions & 0 deletions Editor/Sendbird.Chat.Editor.asmdef.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit e69d789

Please sign in to comment.