Skip to content

Commit

Permalink
Update to version 4.15.0
Browse files Browse the repository at this point in the history
  • Loading branch information
adasiewiczr committed Jul 29, 2021
1 parent 4aec8f0 commit 4734f11
Show file tree
Hide file tree
Showing 3 changed files with 194 additions and 172 deletions.
192 changes: 192 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,195 @@
# July 29th, 2021 - 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):

```groovy
implementation "io.getstream:stream-chat-android-compose:4.15.0-beta"
```

Learn more in the [announcement blog post](https://getstream.io/blog/jetpack-compose-sdk/), check out the [documentation of the Compose UI Components](https://getstream.io/chat/docs/sdk/android/compose/overview/), and try them today with the [Compose Chat tutorial](https://getstream.io/chat/compose/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` and `streamUiLoadingMoreView` attributes to `ChannelListView` and `ChannelListViewStyle`
- Added possibility to customize `ChannelListView` using `streamUiChannelListViewStyle`. Check `StreamUi.ChannelListView` style
- Added `edgeEffectColor` attribute to `ChannelListView` and `ChannelListViewStyle` to allow configuring edge effect color
- Added possibility to customize `MentionListView` style via `TransformStyle.mentionListViewStyleTransformer`
- Added `streamUiSearchResultListViewStyle` attribute to application to customize `SearchResultListView`. The attribute references a style with the following attributes:
- `streamUiSearchResultListSearchInfoBarBackground` - background for search info bar
- `streamUiSearchResultListSearchInfoBarTextSize`, `streamUiSearchResultListSearchInfoBarTextColor`, `streamUiSearchResultListSearchInfoBarTextFont`, `streamUiSearchResultListSearchInfoBarTextFontAssets`, `streamUiSearchResultListSearchInfoBarTextStyle` attributes to customize text displayed in search info bar
- `streamUiSearchResultListEmptyStateIcon` - icon for empty state view
- `streamUiSearchResultListEmptyStateTextSize`, `streamUiSearchResultListEmptyStateTextColor`, `streamUiSearchResultListEmptyStateTextFont`, `streamUiSearchResultListEmptyStateTextFontAssets`, `streamUiSearchResultListEmptyStateTextStyle` attributes to customize empty state text
- `streamUiSearchResultListProgressBarIcon` - animated progress drawable
- `streamUiSearchResultListSenderNameTextSize`, `streamUiSearchResultListSenderNameTextColor`, `streamUiSearchResultListSenderNameTextFont`, `streamUiSearchResultListSenderNameTextFontAssets`, `streamUiSearchResultListSenderNameTextStyle` attributes to customize message sender text
- `streamUiSearchResultListMessageTextSize`, `streamUiSearchResultListMessageTextColor`, `streamUiSearchResultListMessageTextFont`, `streamUiSearchResultListMessageTextFontAssets`, `streamUiSearchResultListMessageTextStyle` attributes to customize message text
- `streamUiSearchResultListMessageTimeTextSize`, `streamUiSearchResultListMessageTimeTextColor`, `streamUiSearchResultListMessageTimeTextFont`, `streamUiSearchResultListMessageTimeTextFontAssets`, `streamUiSearchResultListMessageTimeTextStyle` attributes to customize message time text
- Added possibility to customize `SearchResultListView` style via `TransformStyle.searchResultListViewStyleTransformer`
- Added `streamUiTypingIndicatorViewStyle` attribute to application to customize `TypingIndicatorView`. The attribute references a style with the following attributes:
- `streamUiTypingIndicatorAnimationView` - typing view
- `streamUiTypingIndicatorUsersTextSize`, `streamUiTypingIndicatorUsersTextColor`, `streamUiTypingIndicatorUsersTextFont`, `streamUiTypingIndicatorUsersTextFontAssets`, `streamUiTypingIndicatorUsersTextStyle` attributes to customize typing users text
- Added possibility to customize `TypingIndicatorView` style via `TransformStyle.typingIndicatorViewStyleTransformer`
- Added new properties allowing customizing `MessageInputView` using `MessageInputViewStyle` and `AttachmentSelectionDialogStyle`:
- `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 the `MessageInputViewStyle` 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 of `MessageInputViewStyle` as a parameter. You can obtain a default implementation of `MessageInputViewStyle` with `MessageInputViewStyle::createDefault` method.
- Renamed `FileAttachmentsViewStyle` class to `FileAttachmentViewStyle`

### ❌ Removed
- 🚨 Breaking change: `MessageListItemStyle::reactionsEnabled` was deleted as doubling of the same flag from `MessageListViewStyle`


# July 19th, 2021 - 4.14.2
## stream-chat-android-client
### ❌ Removed
Expand Down
Loading

0 comments on commit 4734f11

Please sign in to comment.