Skip to content

Commit

Permalink
Merge pull request #57 from sendbird/release/4.21.0
Browse files Browse the repository at this point in the history
4.21.0
  • Loading branch information
sendbird-sdk-deployment authored Nov 21, 2024
2 parents a46bd9e + fb38f3f commit c718928
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 2 deletions.
28 changes: 28 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,33 @@
# Changelog

## v4.21.0 (Nov 21, 2024)
### Features
SDK now supports `Custom Report Categories` configured through Sendbird Dashboard, which takes effect after restarting the app. Previous report categories will remain until app restart.

- Added `getReportCategoryInfoList()`
- Added `ReportCategoryInfo`
- Added `report(ReportCategoryInfo, String?, CompletionHandler?)` method in `BaseChannel`
- Added `reportUser(User, ReportCategoryInfo, String?, CompletionHandler?)` method in `BaseChannel`
- Added `reportMessage(BaseMessage, ReportCategoryInfo, String?, CompletionHandler?)` method in `BaseChannel`
- Deprecated `ReportCategory`
- Deprecated `report(ReportCategory, String?, CompletionHandler?)` method in `BaseChannel`
- Deprecated `reportUser(User, ReportCategory, String?, CompletionHandler?)` method in `BaseChannel`
- Deprecated `reportMessage(BaseMessage, ReportCategory, String?, CompletionHandler?)` method in `BaseChannel`

``` kotlin
val reportCategoryInfoList: List<ReportCategoryInfo> = SendbirdChat.getReportCategoryInfoList()
...
reportCategoryInfoList.forEach {
// make Report Category list
// use reportCategoryInfo
}
```

### Improvements
- Removed the `shadow plugin` and switched to referencing dependencies directly.
- The `shadow plugin` was previously used to relocate package names of dependencies to avoid conflicts and resolve dependency management issues.
- The affected libraries are `gson` and `okhttp`.
- This change was made because `okhttp` and `gson` are widely used in Android apps. Shadowing these libraries duplicates their code in the final app, increasing app size. By removing shadowing, we aim to help developers optimize performance and reduce storage requirements.
## v4.20.1 (Nov 19, 2024)
### Improvements
- Fixed a bug where `Reaction.count` resets to 0 when `Reaction.sampledUserIds` is empty
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ Then, add the dependency to the project's top-level `build.gradle` file:
```gradle
dependencies {
...
implementation 'com.sendbird.sdk:sendbird-chat:4.20.1'
implementation 'com.sendbird.sdk:sendbird-chat:4.21.0'
...
}
```
Expand All @@ -104,7 +104,7 @@ TLS 1.3 is enabled by default in Sendbird SDK for Android. To disable it, please
```gradle
dependencies {
implementation ('com.sendbird.sdk:sendbird-chat:4.20.1') {
implementation ('com.sendbird.sdk:sendbird-chat:4.21.0') {
exclude group: 'org.conscrypt', module: 'conscrypt-android'
}
}
Expand Down

0 comments on commit c718928

Please sign in to comment.