Skip to content

Latest commit

 

History

History
64 lines (62 loc) · 10.4 KB

DEPRECATIONS.md

File metadata and controls

64 lines (62 loc) · 10.4 KB

Deprecations

This document lists deprecated constructs in the SDK, with their expected time ⌛ of further deprecations and removals.

API / Feature Deprecated (warning) Deprecated (error) Removed Notes
MessageListViewModel#currentUser
ui-components
2021.07.13
4.14.0
2021.07.27 ⌛ 2021.08.10 ⌛ Use MessageListViewModel#user.value instead
ChatClient.Builder#logLevel(String)
client
2021.07.01 2021.07.13
4.14.0
2021.07.29 ⌛ Use ChatClient.Builder#logLevel(ChatLogLevel) instead
ChatDomain#sendMessage(message: Message, attachmentTransformer: ((at: Attachment, file: File) -> Attachment)?,)
offline
2021.06.14 2021.07.13
4.14.0
2021.08.14 ⌛ Use ChatDomain#sendMessage(message: Message) instead
Multiple MessageListView tint related attributes
ui-components
2021.06.10 2021.07.13
4.14.0
2021.08.10⌛ Override drawables instead
Multiple MessageInputView tint related attributes
ui-components
2021.06.10 2021.07.13
4.14.0
2021.08.10⌛ Override drawables instead
ChannelListHeaderView.streamUiActionButtonTint attribute
ui-components
2021.06.10 2021.07.13
4.14.0
2021.08.10⌛ Override drawable instead
ChannelListView.streamUiMutedChannelIconTint attribute
ui-components
2021.06.10 2021.07.13
4.14.0
2021.08.10⌛ Override drawable instead
Multiple AttachmentOptionsView tint related attributes
ui-components
2021.06.10 2021.07.13
4.14.0
2021.08.10⌛ Override drawables instead
MessageListViewStyle#warningActionsTintColor
ui-components
2021.06.10 2021.07.13
4.14.0
2021.08.10⌛ Override drawable instead
MessageListViewStyle#iconsTint
ui-components
2021.06.10 2021.07.13
4.14.0
2021.08.10⌛ Override drawables instead
AttachmentSelectionDialogStyle#pictureAttachmentIconTint
ui-components
2021.06.10 2021.07.13
4.14.0
2021.08.10⌛ Use the AttachmentDialogStyle#pictureAttachmentIcon instead
AttachmentSelectionDialogStyle#fileAttachmentIconTint
ui-components
2021.06.10 2021.07.13
4.14.0
2021.08.10⌛ Use the AttachmentDialogStyle#fileAttachmentIcon instead
AttachmentSelectionDialogStyle#cameraAttachmentIconTint
ui-components
2021.06.10 2021.07.13
4.14.0
2021.08.10⌛ Use the AttachmentDialogStyle#cameraAttachmentIcon instead
ChannelListViewStyle#mutedChannelIconTint
ui-components
2021.06.10 2021.07.13
4.14.0
2021.08.10⌛ Use the ChannelListViewStyle#mutedChannelIcon instead
AvatarView.OnlineIndicatorPosition.TOP
ui-components
2021.06.01 2021.07.13
4.14.0
2021.08.01⌛ Use the OnlineIndicatorPosition.TOP_RIGHT constant instead
AvatarView.OnlineIndicatorPosition.BOTTOM
ui-components
2021.06.01 2021.07.13
4.14.0
2021.08.01⌛ Use the OnlineIndicatorPosition.BOTTOM_RIGHT constant instead
SocketListener::onDisconnected
client
2021.05.17 2021.06.23
4.12.1
2021.07.13
4.14.0
Use method with DisconnectCause instead of it
ChatClient#onMessageReceived
client
2021.05.14
4.11.0
2021.06.23
4.12.1
2021.07.13
4.14.0
Use the ChatClient.handleRemoteMessage method instead
ChatClient#onNewTokenReceived
client
2021.05.14
4.11.0
2021.06.23
4.12.1
2021.07.13
4.14.0
Use the ChatClient.setFirebaseToken method instead
ChatNotificationHandler#getSmallIcon
client
2021.05.14
4.11.0
2021.06.23
4.12.1
2021.07.13
4.14.0
Use the NotificationsConfig.smallIcon instead
ChatNotificationHandler#getFirebaseMessageIdKey
client
2021.05.14
4.11.0
2021.06.23
4.12.1
2021.07.13
4.14.0
Use the NotificationsConfig.firebaseMessageIdKey instead
ChatNotificationHandler#getFirebaseChannelIdKey
client
2021.05.14
4.11.0
2021.06.23
4.12.1
2021.07.13
4.14.0
Use the NotificationsConfig.firebaseChannelIdKey instead
ChatNotificationHandler#getFirebaseChannelTypeKey
client
2021.05.14
4.11.0
2021.06.23
4.12.1
2021.07.13
4.14.0
Use the NotificationsConfig.firebaseChannelTypeKey instead
Old serialization implementation
client
2021.05.10
4.10.0
2021.06.30
4.13.0
2021.08.30 ⌛ See the 4.10.0 release notes for details
io.getstream.chat.android.livedata.ChannelData
offline
2021.05.07 2021.06.23
4.12.1
2021.07.13
4.14.0
Use io.getstream.chat.android.offline.channel.ChannelData instead
ChannelController#channelData
offline
2021.05.07 2021.06.23
4.12.1
2021.07.13
4.14.0
Use ChannelController::offlineChannelData instead
MessageInputViewModel#editMessage
ui-common
2021.05.05 2021.06.23
4.12.1
2021.07.13
4.14.0
Use MessageInputViewModel::messageToEdit and MessageInputViewModel::postMessageToEdit
ChatDomain#currentUser
offline
2021.04.30 2021.07.13
4.14.0
2021.08.13 ⌛ Subscribe to ChatDomain::user and handle nullable state
MessageInputView#setSuggestionListView
ui-components
2021.04.13 2021.04.27
4.10.0
2021.06.23
4.12.1
Setting external SuggestionListView is no longer necessary
ChatDomain.usecases
offline
2021.04.06 2021.05.06
4.10.0
2021.06.23
4.12.1
Replace this property call by obtaining a specific use case directly from ChatDomain
MessageInputView#setMembers
ui-components
2021.04.07 2021.04.21
4.9.0
2021.05.05
4.10.0
Use MessageInputView::setUserLookupHandler instead of manually passing the list of users
ChannelListView's empty state methods
ui-components
2021.04.05 2021.04.21
4.9.0
2021.05.05
4.10.0
These methods no longer need to be called directly, setChannel handles empty state changes automatically
MessageListItemStyle#messageTextColorTheirs
ui-components
2021.03.25 2021.04.21
4.9.0
2021.06.23
4.12.1
Use MessageListItemStyle::textStyleTheirs::colorOrNull() instead
MessageListItemStyle#messageTextColorMine
ui-components
2021.03.25 2021.04.21
4.9.0
2021.06.23
4.12.1
Use MessageListItemStyle::textStyleMine::colorOrNull() instead
com.getstream.sdk.chat.ChatUI
ui-components
2021.03.19
4.8.0
2021.04.21
4.9.0
2021.06.23
4.12.1
Use the new ChatUI implementation io.getstream.chat.android.ui.ChatUI
GetTotalUnreadCount#invoke
2021.03.17
4.7.2
2021.04.21
4.9.0
2021.06.23
4.12.1
Use ChatDomain::totalUnreadCount instead
GetUnreadChannelCount#invoke
2021.03.17
4.7.2
2021.04.21
4.9.0
2021.06.23
4.12.1
Use ChatDomain::channelUnreadCount instead
ChatClient#unMuteChannel
client
2021.03.15
4.7.1
2021.04.21
4.9.0
2021.06.23
4.12.1
Use the unmuteChannel method instead
ChatClient#unBanUser
client
2021.03.15
4.7.1
2021.04.21
4.9.0
2021.06.23
4.12.1
Use the unbanUser method instead
ChannelClient#unBanUser
client
2021.03.15
4.7.1
2021.04.21
4.9.0
2021.06.23
4.12.1
Use the unbanUser method instead
ChannelController#unBanUser
client
2021.03.15
4.7.1
2021.04.21
4.9.0
2021.04.21
4.9.0
Use the unbanUser method instead
ChatDomain.Builder constructors with user params 2021.02.26
4.7.0
2021.06.23
4.12.1
2021.08.26 ⌛ Use ChatDomain.Builder(context, chatClient) instead
ChatDomain#disconnect 2021.02.25
4.7.0
2021.06.23
4.12.1
2021.08.25 ⌛ Use just ChatClient#disconnect instead
setUser (and similar) methods
client
2021.02.03
4.5.3
2021.05.03
4.10.0
2021.08.03 ⌛ Replaced by connectUser style methods that return Call objects, see the updated documentation for Initialization & Users)
MessageListViewModel.Event.AttachmentDownload
ui-common
2021.01.29
4.5.2
2021.02.29
4.7.0
2021.03.29
4.8.0
Use DownloadAttachment instead
subscribe methods with Kotlin function parameters
client
2021.01.27
4.5.2
2021.03.27
4.8.0
2021.06.23
4.12.1
Use methods with ChatEventListener parameters instead (only affects Java clients)
ChatUI(client, domain, context)
ui-common
2020.11.09
4.4.2
2021.02.22
4.6.0
2021.03.22
4.8.0
Use ctor with just Context param instead
User#unreadCount
client
2020.11.05
4.4.2
2021.02.22
4.6.0
2021.03.22
4.8.0
Use totalUnreadCount instead
ChannelController
client
2020.11.04
4.4.1
2021.02.22
4.6.0
2021.04.21
4.9.0
Renamed due to conflicting name with a type in the offline library, use ChannelClient instead
Chat interface
ui-common
2020.10.27
4.4.1
2021.02.22
4.6.0
2021.04.21
4.9.0
Use ChatUI instead
MessageListView#setViewHolderFactory
ui (old)
2020.10.15
4.3.1
2021.02.22
4.6.0
2021.04.21
4.9.0
Use the more explicit setMessageViewHolderFactory method instead
SendMessageWithAttachments use case
offline
2020.09.30
4.3.0
2021.02.22
4.6.0
2021.04.21
4.9.0
-
ChatObservable based event APIs (events())
client
2020.09.18 2021.02.22
4.6.0
2021.04.21
4.9.0
Replace with direct subscribe calls on ChatClient and ChannelClient, see migration guide
ChatClient#flag(userId)
client
2020.07.28 2021.02.22
4.6.0
2021.03.22
4.8.0
Use the more explicit flagUser method instead
ChatDomain.Builder#notificationConfig
offline
- 2020.12.14
4.4.7
2021.03.14
4.8.0
Configure this on ChatClient.Builder instead
Call#enqueue((Result<T>) -> Unit)
core
- 2020.12.09
4.4.7
2021.03.09
4.8.0
Use enqueue(Callback<T>) instead (only affects Java clients)
Pagination#get
client
- 2020.10.12
4.3.0
2021.02.22
4.6.0
Use toString instead
MessageListItemAdapter#replaceEntities
ui (old)
- 2020.10.05
4.3.0
2021.02.22
4.6.0
Use submitList instead