Skip to content

Commit

Permalink
Added 3.5.2
Browse files Browse the repository at this point in the history
  • Loading branch information
leo-shin committed Apr 6, 2023
1 parent ff55695 commit 0dd8754
Show file tree
Hide file tree
Showing 6 changed files with 36 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
# Changelog
### v3.5.2 (Apr 6, 2023) with Chat SDK `v4.6.1`
* Added `setUseHeaderLeftButton(boolean)` in `FeedNotificationChannelFragment.Builder`
* Added `setUseHeaderLeftButton(boolean)` in `ChatNotificationChannelFragment.Builder`

### v3.5.1 (Mar 30, 2023) with Chat SDK `v4.6.0`
* Extended the maximum recording time of voice message to 10 minutes.
* Notifications
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ org.gradle.jvmargs=-Xmx1536m
# https://developer.android.com/topic/libraries/support-library/androidx-rn
android.useAndroidX=true

UIKIT_VERSION = 3.5.1
UIKIT_VERSION = 3.5.2
UIKIT_VERSION_CODE = 1
2 changes: 1 addition & 1 deletion uikit/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])

// Sendbird
api 'com.sendbird.sdk:sendbird-chat:4.6.0'
api 'com.sendbird.sdk:sendbird-chat:4.6.1'

implementation 'com.github.bumptech.glide:glide:4.13.0'
annotationProcessor 'com.github.bumptech.glide:compiler:4.13.0'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,20 @@ public Builder setUseHeader(boolean useHeader) {
return this;
}

/**
* Sets whether the left button of the header is used.
*
* @param useHeaderLeftButton <code>true</code> if the left button of the header is used,
* <code>false</code> otherwise.
* @return This Builder object to allow for chaining of calls to set methods.
* @since 3.5.2
*/
@NonNull
public Builder setUseHeaderLeftButton(boolean useHeaderLeftButton) {
bundle.putBoolean(StringSet.KEY_USE_HEADER_LEFT_BUTTON, useHeaderLeftButton);
return this;
}

/**
* Sets the custom fragment. It must inherit {@link ChatNotificationChannelFragment}.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,20 @@ public Builder setUseHeader(boolean useHeader) {
return this;
}

/**
* Sets whether the left button of the header is used.
*
* @param useHeaderLeftButton <code>true</code> if the left button of the header is used,
* <code>false</code> otherwise.
* @return This Builder object to allow for chaining of calls to set methods.
* @since 3.5.2
*/
@NonNull
public Builder setUseHeaderLeftButton(boolean useHeaderLeftButton) {
bundle.putBoolean(StringSet.KEY_USE_HEADER_LEFT_BUTTON, useHeaderLeftButton);
return this;
}

/**
* Sets the custom fragment. It must inherit {@link FeedNotificationChannelFragment}.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -409,6 +409,7 @@ public Fragment newMessageThreadFragment(@NonNull String channelUrl, @NonNull Ba
public Fragment newFeedNotificationChannelFragment(@NonNull String channelUrl, @NonNull Bundle args) {
return new FeedNotificationChannelFragment.Builder(channelUrl)
.withArguments(args)
.setUseHeaderLeftButton(true)
.build();
}

Expand All @@ -423,6 +424,7 @@ public Fragment newFeedNotificationChannelFragment(@NonNull String channelUrl, @
public Fragment newChatNotificationChannelFragment(@NonNull String channelUrl, @NonNull Bundle args) {
return new ChatNotificationChannelFragment.Builder(channelUrl)
.withArguments(args)
.setUseHeaderLeftButton(true)
.build();
}
}

0 comments on commit 0dd8754

Please sign in to comment.