Skip to content

Commit

Permalink
Added 2.2.3
Browse files Browse the repository at this point in the history
  • Loading branch information
rimdoo committed Jan 26, 2022
1 parent 7688166 commit a644db3
Show file tree
Hide file tree
Showing 34 changed files with 551 additions and 317 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Change Log

### v2.2.3 (Jan 26, 2022) with Core SDK `v3.1.5`
* Added `List<DialogListItem> makeMessageContextMenu(BaseMessage)`, `boolean onMessageContextMenuItemClicked(BaseMessage, View, int, DialogListItem)`, `saveFileMessage(FileMessage)` in `ChannelFragment`, `OpenChannelFragment`.
* Changed `ViewModelStoreOwner` from `Activity` to `Fragment`.
* Improved stability.

### v2.2.2 (Dec 21, 2021) with Core SDK `v3.1.3`
* Improved stability.

Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ org.gradle.jvmargs=-Xmx1536m
android.useAndroidX=true
android.enablerD8=true

UIKIT_VERSION = 2.2.2
UIKIT_VERSION = 2.2.3
UIKIT_VERSION_CODE = 1

2 changes: 1 addition & 1 deletion uikit-custom-sample/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ android {
dependencies {
implementation fileTree(dir: "libs", include: ["*.jar"])
// implementation project(":uikit")
implementation "com.sendbird.sdk:uikit:2.2.2"
implementation "com.sendbird.sdk:uikit:2.2.3"

implementation "androidx.multidex:multidex:2.0.1"
implementation 'com.google.firebase:firebase-messaging:21.0.0'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,8 @@ private void showEditProfileDialog() {
new DialogListItem(R.string.text_settings_change_user_profile_image)
};

DialogUtils.buildItemsBottom(items, (v, p, key) -> {
DialogUtils.buildItemsBottom(items, (v, p, item) -> {
final int key = item.getKey();
if (key == R.string.text_settings_change_user_nickname) {
Logger.dev("change user nickname");
OnEditTextResultListener listener = result -> {
Expand Down Expand Up @@ -322,8 +323,9 @@ private void showMediaSelectDialog() {

DialogUtils.buildItems(getString(com.sendbird.uikit.R.string.sb_text_channel_settings_change_channel_image),
(int) getResources().getDimension(R.dimen.sb_dialog_width_280),
items, (v, p, key) -> {
items, (v, p, item) -> {
try {
final int key = item.getKey();
SendBird.setAutoBackgroundDetection(false);
if (key == com.sendbird.uikit.R.string.sb_text_channel_settings_change_channel_image_camera) {
takeCamera();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -217,8 +217,9 @@ private void showMediaSelectDialog() {
items = new DialogListItem[]{delete, camera, gallery};
}

DialogUtils.buildItemsBottom(items, (view, position, key) -> {
DialogUtils.buildItemsBottom(items, (view, position, item) -> {
try {
final int key = item.getKey();
SendBird.setAutoBackgroundDetection(false);
if (key == com.sendbird.uikit.R.string.sb_text_channel_settings_change_channel_image_camera) {
takeCamera();
Expand Down
2 changes: 1 addition & 1 deletion uikit-sample/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ android {
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
// implementation project(":uikit")
implementation "com.sendbird.sdk:uikit:2.2.2"
implementation "com.sendbird.sdk:uikit:2.2.3"

implementation "androidx.multidex:multidex:2.0.1"
implementation 'com.google.firebase:firebase-messaging:21.0.0'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,8 @@ private void showEditProfileDialog() {
new DialogListItem(R.string.text_settings_change_user_profile_image)
};

DialogUtils.buildItemsBottom(items, (v, p, key) -> {
DialogUtils.buildItemsBottom(items, (v, p, item) -> {
final int key = item.getKey();
if (key == R.string.text_settings_change_user_nickname) {
Logger.dev("change user nickname");
OnEditTextResultListener listener = result -> {
Expand Down Expand Up @@ -399,8 +400,9 @@ private void showMediaSelectDialog() {

DialogUtils.buildItems(getString(com.sendbird.uikit.R.string.sb_text_channel_settings_change_channel_image),
(int) getResources().getDimension(R.dimen.sb_dialog_width_280),
items, (v, p, key) -> {
items, (v, p, item) -> {
try {
final int key = item.getKey();
SendBird.setAutoBackgroundDetection(false);
if (key == com.sendbird.uikit.R.string.sb_text_channel_settings_change_channel_image_camera) {
takeCamera();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -219,8 +219,9 @@ private void showMediaSelectDialog() {
items = new DialogListItem[]{delete, camera, gallery};
}

DialogUtils.buildItemsBottom(items, (view, position, key) -> {
DialogUtils.buildItemsBottom(items, (view, position, item) -> {
try {
final int key = item.getKey();
SendBird.setAutoBackgroundDetection(false);
if (key == com.sendbird.uikit.R.string.sb_text_channel_settings_change_channel_image_camera) {
takeCamera();
Expand Down
2 changes: 1 addition & 1 deletion uikit/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])

// Sendbird
api 'com.sendbird.sdk:sendbird-android-sdk:3.1.3'
api 'com.sendbird.sdk:sendbird-android-sdk:3.1.5'

implementation 'com.github.bumptech.glide:glide:4.11.0'
annotationProcessor 'com.github.bumptech.glide:compiler:4.11.0'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ protected void onActionItemClicked(View view, int position, User user) {
items = new DialogListItem[]{unbanMember};

DialogUtils.buildItems(user.getNickname(), (int) getResources().getDimension(R.dimen.sb_dialog_width_280),
items, (v, p, key) -> unbanUser(user.getUserId())).showSingle(getFragmentManager());
items, (v, p, item) -> unbanUser(user.getUserId())).showSingle(getFragmentManager());
}

@Override
Expand Down
Loading

0 comments on commit a644db3

Please sign in to comment.