Android SDK v6.0.0 Migration Guide

This guide is to provide information about breaking changes and how to migrate to the AmitySDK Android 6.0.0 version.

Live Objects / Live Collections Changes

As announced here, Deprecation announcements, this version replaces PagedList and RxJava2 with PagingData and RxJava3.

Live capability has been upgraded with RxJava3. Include RxJava3 to your project with this guide, RxJava Getting Started, or use SDK’s extension function to Rx2() to bridge the SDK functions back to RxJava2.

The Paginated collection has been upgraded with PagingData. To consume PaginData, replace Android’s PagedListAdapter with PagingDataAdapter following this guide, Paging V3 migration.

Behaviour Changes

Channel

Create

Channel creation with custom id is no longer supported

Message

Query

Message query from channel is no longer supported. Messages from each channel are migrated to the corresponding channel’s default sub-channel. Refer to Subchannel feature documentation.

StackFromEnd option is no longer supported. To achieve Chat room behaviour, use sortyBy() with the value AmityMessageQuerySortOption.LAST_CREATED and reverse the RecyclerView.

Create

Message creation on the channels is no longer supported. Messages must be created on Subchannels only. Refer to Subchannel feature documentation.

RTE

Automatic subscription to messages on Live and Broadcast channels is no longer supported. To receive real time updates on these channels, explicitly subscribe to the channel. Refer to RTE documentation.

Comment

Create

Comment creation with custom id is no longer supported.

Package Changes

All SDK classes are required to be newly imported into your project as API classes are relocated to com.amity.socialcloud.sdk.api and model classes are relocated to com.amity.socialcloud.sdk.model

Interface Changes

API

AmityChannelRepository

AmityChannelParticipation

AmityChannelMembershipQuery

AmityChannelMemberSearch

AmityMessageRepository

AmityMessageQuery

AmityMessageQuery.Builder

AmityMessageReactionQuery

AmityCoreClient

AmityFileRepository

AmityMyFollowersQuery

AmityMyFollowingsQuery

AmityUserFollowersQuery

AmityUserFollowingsQuery

AmityUserQuery

AmityUserSearch

AmityUserNotification

AmityUserUpdate

AmityCommunityCategoryQuery

AmityCommentRepository

AmityCommentReactionQuery

AmityCommunityQuery

AmityCommunityModeration

AmityMembershipQuery

AmityCommunityMembershipSearch

AmityFeedRepository

AmityPostRepository

AmityCommunityPostQuery

AmityUserPostQuery

AmityGlobalFeedQuery

AmityCustomRankingGlobalFeedQuery

AmityPostReactionQuery

AmityStreamRepository

AmityStreamQuery

Model

AmityChannel

AmityMessage

AmityComment

AmityCommunity

AmityPost

AmityStream

Last updated