4.15.0
New Jetpack Compose UI Components 🎉
Starting from this release, we have a new stream-chat-android-compose
artifact that contains a UI implementation for Chat built in Jetpack Compose.
The new artifact is available as a beta for now (note the postfix in the version number):
implementation "io.getstream:stream-chat-android-compose:4.15.0-beta"
Learn more in the announcement blog post, check out the documentation of the Compose UI Components, and try them today with the Compose Chat tutorial!
Common changes for all artifacts
🐞 Fixed
- Fixed adding
MessageListItem.TypingItem
to message list
⬆️ Improved
- ⚠ Downgraded Kotlin version to 1.5.10 to support Jetpack Compose
- Removed AndroidX Media dependency
- Updated dependency versions
- Coil 1.3.0
- AndroidX Activity 1.3.0
- AndroidX AppCompat 1.3.1
- Android Ktx 1.6.0
- AndroidX RecyclerView 1.2.1
- Kotlin Coroutines 1.5.1
- Dexter 6.2.3
- Lottie 3.7.2
stream-chat-android-client
⬆️ Improved
- Improved the names of properties in the
Config
class
stream-chat-android-ui-common
✅ Added
Now it is possible to style the AttachmentActivity. Just replace the activity's theme
in your Manifest file:
<activity
android:name="io.getstream.chat.android.ui.gallery.AttachmentActivity"
android:theme="@style/yourTheme"
tools:replace="android:theme"
/>
stream-chat-android-ui-components
🐞 Fixed
- Fixed "operator $ne is not supported for custom fields" error when querying channels
✅ Added
-
Now you can configure the style of
MessageListItem
. Added:- streamUiMessageTextColorThreadSeparator
- streamUiMessageTextFontThreadSeparator
- streamUiMessageTextFontAssetsThreadSeparator
- streamUiMessageTextStyleThreadSeparator
- streamUiMessageTextSizeLinkLabel
- streamUiMessageTextColorLinkLabel
- streamUiMessageTextFontLinkLabel
- streamUiMessageTextFontAssetsLinkLabel
- streamUiMessageTextStyleLinkLabel
- streamUiMessageListLoadingView
- streamUiEmptyStateTextSize
- streamUiEmptyStateTextColor
- streamUiEmptyStateTextFont
- streamUiEmptyStateTextFontAssets
- streamUiEmptyStateTextStyle
-
Now you can configure the style of
AttachmentMediaActivity
-
Added
streamUiLoadingView
,streamUiEmptyStateView
andstreamUiLoadingMoreView
attributes toChannelListView
andChannelListViewStyle
-
Added possibility to customize
ChannelListView
usingstreamUiChannelListViewStyle
. CheckStreamUi.ChannelListView
style -
Added
edgeEffectColor
attribute toChannelListView
andChannelListViewStyle
to allow configuring edge effect color -
Added possibility to customize
MentionListView
style viaTransformStyle.mentionListViewStyleTransformer
-
Added
streamUiSearchResultListViewStyle
attribute to application to customizeSearchResultListView
. The attribute references a style with the following attributes:streamUiSearchResultListSearchInfoBarBackground
- background for search info barstreamUiSearchResultListSearchInfoBarTextSize
,streamUiSearchResultListSearchInfoBarTextColor
,streamUiSearchResultListSearchInfoBarTextFont
,streamUiSearchResultListSearchInfoBarTextFontAssets
,streamUiSearchResultListSearchInfoBarTextStyle
attributes to customize text displayed in search info barstreamUiSearchResultListEmptyStateIcon
- icon for empty state viewstreamUiSearchResultListEmptyStateTextSize
,streamUiSearchResultListEmptyStateTextColor
,streamUiSearchResultListEmptyStateTextFont
,streamUiSearchResultListEmptyStateTextFontAssets
,streamUiSearchResultListEmptyStateTextStyle
attributes to customize empty state textstreamUiSearchResultListProgressBarIcon
- animated progress drawablestreamUiSearchResultListSenderNameTextSize
,streamUiSearchResultListSenderNameTextColor
,streamUiSearchResultListSenderNameTextFont
,streamUiSearchResultListSenderNameTextFontAssets
,streamUiSearchResultListSenderNameTextStyle
attributes to customize message sender textstreamUiSearchResultListMessageTextSize
,streamUiSearchResultListMessageTextColor
,streamUiSearchResultListMessageTextFont
,streamUiSearchResultListMessageTextFontAssets
,streamUiSearchResultListMessageTextStyle
attributes to customize message textstreamUiSearchResultListMessageTimeTextSize
,streamUiSearchResultListMessageTimeTextColor
,streamUiSearchResultListMessageTimeTextFont
,streamUiSearchResultListMessageTimeTextFontAssets
,streamUiSearchResultListMessageTimeTextStyle
attributes to customize message time text
-
Added possibility to customize
SearchResultListView
style viaTransformStyle.searchResultListViewStyleTransformer
-
Added
streamUiTypingIndicatorViewStyle
attribute to application to customizeTypingIndicatorView
. The attribute references a style with the following attributes:streamUiTypingIndicatorAnimationView
- typing viewstreamUiTypingIndicatorUsersTextSize
,streamUiTypingIndicatorUsersTextColor
,streamUiTypingIndicatorUsersTextFont
,streamUiTypingIndicatorUsersTextFontAssets
,streamUiTypingIndicatorUsersTextStyle
attributes to customize typing users text
-
Added possibility to customize
TypingIndicatorView
style viaTransformStyle.typingIndicatorViewStyleTransformer
-
Added new properties allowing customizing
MessageInputView
usingMessageInputViewStyle
andAttachmentSelectionDialogStyle
:MessageInputViewStyle.fileNameTextStyle
MessageInputViewStyle.fileSizeTextStyle
MessageInputViewStyle.fileCheckboxSelectorDrawable
MessageInputViewStyle.fileCheckboxTextColor
MessageInputViewStyle.fileAttachmentEmptyStateTextStyle
MessageInputViewStyle.mediaAttachmentEmptyStateTextStyle
MessageInputViewStyle.fileAttachmentEmptyStateText
MessageInputViewStyle.mediaAttachmentEmptyStateText
MessageInputViewStyle.dismissIconDrawable
AttachmentSelectionDialogStyle.allowAccessToGalleryText
AttachmentSelectionDialogStyle.allowAccessToFilesText
AttachmentSelectionDialogStyle.allowAccessToCameraText
AttachmentSelectionDialogStyle.allowAccessToGalleryIcon
AttachmentSelectionDialogStyle.allowAccessToFilesIcon
AttachmentSelectionDialogStyle.allowAccessToCameraIcon
AttachmentSelectionDialogStyle.grantPermissionsTextStyle
AttachmentSelectionDialogStyle.recentFilesTextStyle
AttachmentSelectionDialogStyle.recentFilesText
AttachmentSelectionDialogStyle.fileManagerIcon
AttachmentSelectionDialogStyle.videoDurationTextStyle
AttachmentSelectionDialogStyle.videoIconDrawable
AttachmentSelectionDialogStyle.videoIconVisible
AttachmentSelectionDialogStyle.videoLengthLabelVisible
-
Added
StreamUi.MessageInputView
theme allowing to customize all of theMessageInputViewStyle
properties:- streamUiAttachButtonEnabled
- streamUiAttachButtonIcon
- streamUiLightningButtonEnabled
- streamUiLightningButtonIcon
- streamUiMessageInputTextSize
- streamUiMessageInputTextColor
- streamUiMessageInputHintTextColor
- streamUiMessageInputScrollbarEnabled
- streamUiMessageInputScrollbarFadingEnabled
- streamUiSendButtonEnabled
- streamUiSendButtonEnabledIcon
- streamUiSendButtonDisabledIcon
- streamUiShowSendAlsoToChannelCheckbox
- streamUiSendAlsoToChannelCheckboxGroupChatText
- streamUiSendAlsoToChannelCheckboxDirectChatText
- streamUiSendAlsoToChannelCheckboxTextSize
- streamUiSendAlsoToChannelCheckboxTextColor
- streamUiSendAlsoToChannelCheckboxTextStyle
- streamUiMentionsEnabled
- streamUiMessageInputTextStyle
- streamUiMessageInputHintText
- streamUiCommandsEnabled
- streamUiMessageInputEditTextBackgroundDrawable
- streamUiMessageInputDividerBackgroundDrawable
- streamUiPictureAttachmentIcon
- streamUiFileAttachmentIcon
- streamUiCameraAttachmentIcon
- streamUiAllowAccessToCameraIcon
- streamUiAllowAccessToFilesIcon
- streamUiAllowAccessToGalleryIcon
- streamUiAllowAccessToGalleryText
- streamUiAllowAccessToFilesText
- streamUiAllowAccessToCameraText
- streamUiGrantPermissionsTextSize
- streamUiGrantPermissionsTextColor
- streamUiGrantPermissionsTextStyle
- streamUiAttachmentsRecentFilesTextSize
- streamUiAttachmentsRecentFilesTextColor
- streamUiAttachmentsRecentFilesTextStyle
- streamUiAttachmentsRecentFilesText
- streamUiAttachmentsFileManagerIcon
- streamUiAttachmentVideoLogoIcon
- streamUiAttachmentVideoLengthVisible
- streamUiAttachmentVideoIconVisible
- streamUiCommandInputCancelIcon
- streamUiCommandInputBadgeBackgroundDrawable
- streamUiCommandInputBadgeIcon
- streamUiCommandInputBadgeTextSize
- streamUiCommandInputBadgeTextColor
- streamUiCommandInputBadgeStyle
- streamUiAttachmentsFileNameTextSize
- streamUiAttachmentsFileNameTextColor
- streamUiAttachmentsFileNameTextStyle
- streamUiAttachmentsFileSizeTextSize
- streamUiAttachmentsFileSizeTextColor
- streamUiAttachmentsFileSizeTextStyle
- streamUiFileCheckBoxSelectorTextColor
- streamUiFileCheckBoxSelectorDrawable
- streamUiAttachmentsFilesEmptyStateTextSize
- streamUiAttachmentsFilesEmptyStateTextColor
- streamUiAttachmentsFilesEmptyStateStyle
- streamUiAttachmentsMediaEmptyStateTextSize
- streamUiAttachmentsMediaEmptyStateTextColor
- streamUiAttachmentsMediaEmptyStateStyle
- streamUiAttachmentsFilesEmptyStateText
- streamUiAttachmentsMediaEmptyStateText
- streamUiMessageInputCloseButtonIconDrawable
-
Added
streamUiMessageListFileAttachmentStyle
theme attribute to customize the appearance of file attachments within messages.
⚠️ Changed
- Made
Channel::getLastMessage
function public AttachmentSelectionDialogFragment::newInstance
requires instance ofMessageInputViewStyle
as a parameter. You can obtain a default implementation ofMessageInputViewStyle
withMessageInputViewStyle::createDefault
method.- Renamed
FileAttachmentsViewStyle
class toFileAttachmentViewStyle
❌ Removed
- 🚨 Breaking change:
MessageListItemStyle::reactionsEnabled
was deleted as doubling of the same flag fromMessageListViewStyle