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
Methods | Changes | Remarks |
---|---|---|
|
| Channel creation with custom id is no longer supported. Channel creation requires displayName |
| Removed | Use |
| Removed | Use |
|
|
AmityChannelParticipation
Methods | Changes | Remarks |
---|---|---|
startReading() | Removed | |
stopReading() | Removed |
AmityChannelMembershipQuery
Methods | Changes | Remarks |
---|---|---|
| Return Flowable<PagingData<X>> instead of Flowable<PagedList<X>> | |
| Removed |
AmityChannelMemberSearch
Methods | Changes | Remarks |
---|---|---|
| Return Flowable<PagingData<X>> instead of Flowable<PagedList<X>> | |
| Removed |
AmityMessageRepository
Methods | Changes | Remarks |
---|---|---|
| createMessage(subChannelId: String) | |
| getMessages(subChannelId: String) |
AmityMessageQuery
Methods | Changes | Remarks |
---|---|---|
| Return Flowable<PagingData<X>> instead of Flowable<PagedList<X>> | |
| Removed | |
AmityMessageQuery.Builder
Methods | Changes | Remarks |
---|---|---|
| Removed | Use |
AmityMessageReactionQuery
Methods | Changes | Remarks |
---|---|---|
| Return Flowable<PagingData<X>> instead of Flowable<PagedList<X>> | |
| Removed |
AmityCoreClient
Methods | Changes | Remarks |
---|---|---|
| Removed | Use
For custom endpoint, use |
| Removed | Use |
AmityFileRepository
Methods | Changes | Remarks |
---|---|---|
| Return
| |
| Return
| |
| Return
| |
| Removed | Use |
| Return
|
AmityMyFollowersQuery
Methods | Changes | Remarks |
---|---|---|
| Return Flowable<PagingData<X>> instead of Flowable<PagedList<X>> | |
| Removed |
AmityMyFollowingsQuery
Methods | Changes | Remarks |
---|---|---|
| Return Flowable<PagingData<X>> instead of Flowable<PagedList<X>> | |
| Removed | |
AmityUserFollowersQuery
Methods | Changes | Remarks |
---|---|---|
| Return Flowable<PagingData<X>> instead of Flowable<PagedList<X>> | |
| Removed |
AmityUserFollowingsQuery
Methods | Changes | Remarks |
---|---|---|
| Return Flowable<PagingData<X>> instead of Flowable<PagedList<X>> | |
| Removed |
AmityUserQuery
Methods | Changes | Remarks |
---|---|---|
| Return Flowable<PagingData<X>> instead of Flowable<PagedList<X>> | |
| Removed |
AmityUserSearch
Methods | Changes | Remarks |
---|---|---|
| Return Flowable<PagingData<X>> instead of Flowable<PagedList<X>> | |
| Removed |
AmityUserNotification
Methods | Changes | Remarks |
---|---|---|
| Removed | Use |
| Removed | Use |
AmityUserUpdate
Methods | Changes | Remarks |
---|---|---|
|
|
AmityCommunityCategoryQuery
Methods | Changes | Remarks |
---|---|---|
| Return Flowable<PagingData<X>> instead of Flowable<PagedList<X>> | |
| Removed |
AmityCommentRepository
Methods | Changes | Remarks |
---|---|---|
|
| |
| Removed | Comment creation with custom id is no longer supported |
|
| |
|
|
AmityCommentReactionQuery
Methods | Changes | Remarks |
---|---|---|
| Return Flowable<PagingData<X>> instead of Flowable<PagedList<X>> | |
| Removed |
AmityCommunityQuery
Methods | Changes | Remarks |
---|---|---|
| Return Flowable<PagingData<X>> instead of Flowable<PagedList<X>> | |
| Removed |
AmityCommunityModeration
Methods | Changes | Remarks |
---|---|---|
| Removed | Use instead |
| Removed | Use instead |
AmityMembershipQuery
Methods | Changes | Remarks |
---|---|---|
| Return Flowable<PagingData<X>> instead of Flowable<PagedList<X>> | |
| Removed |
AmityCommunityMembershipSearch
Methods | Changes | Remarks |
---|---|---|
| Return Flowable<PagingData<X>> instead of Flowable<PagedList<X>> | |
| Removed |
AmityFeedRepository
Methods | Changes | Remarks |
---|---|---|
| Removed | Use equivalent method in AmityPostRepository instead |
| Removed | Use equivalent method in AmityPostRepository instead |
| Removed | Use equivalent method in AmityPostRepository instead |
| Removed | Use equivalent method in AmityPostRepository instead |
| Removed | Use equivalent method in AmityPostRepository instead |
| Removed | Use equivalent method in AmityPostRepository instead |
AmityPostRepository
Methods | Changes | Remarks |
---|---|---|
|
| |
|
| |
AmityCommunityPostQuery
Methods | Changes | Remarks |
---|---|---|
| Return Flowable<PagingData<X>> instead of Flowable<PagedList<X>> | |
| Removed |
AmityUserPostQuery
Methods | Changes | Remarks |
---|---|---|
| Return Flowable<PagingData<X>> instead of Flowable<PagedList<X>> | |
| Removed |
AmityGlobalFeedQuery
Methods | Changes | Remarks |
---|---|---|
| Return Flowable<PagingData<X>> instead of Flowable<PagedList<X>> | |
| Removed | |
AmityCustomRankingGlobalFeedQuery
Methods | Changes | Remarks |
---|---|---|
| Return Flowable<PagingData<X>> instead of Flowable<PagedList<X>> | |
| Removed |
AmityPostReactionQuery
Methods | Changes | Remarks |
---|---|---|
| Return Flowable<PagingData<X>> instead of Flowable<PagedList<X>> | |
| Removed |
AmityStreamRepository
Methods | Changes | Remarks |
---|---|---|
| Removed | Use |
AmityStreamQuery
Methods | Changes | Remarks |
---|---|---|
| Removed | Use |
Model
AmityChannel
Methods | Changes | Remarks |
---|---|---|
|
| |
|
|
AmityMessage
Methods | Changes | Remarks |
---|---|---|
|
| |
|
| |
|
| |
|
|
AmityComment
Methods | Changes | Remarks |
---|---|---|
|
| |
|
| |
|
|
AmityCommunity
Methods | Changes | Remarks |
---|---|---|
|
| |
|
|
AmityPost
Methods | Changes | Remarks |
---|---|---|
|
| |
|
|
AmityStream
Methods | Changes | Remarks |
---|---|---|
|
|
Last updated