iOS SDK v6.0.0 Migration Guide
This guide is to provide information about breaking changes and how to migrate to the AmitySDK iOS 6.0.0 version.
Installation
Manual Installation
AmitySDK 6.x.x version requires RealmSwift.xcframework
along with existing frameworks.
Behaviour Changes
Channel
Channel Creation
Support for Providing custom ID when creating channel is now removed.
Sub Channels:
Now you can create multiple sub-channels inside a channel. Each Sub Channels acts as a separate container for message. The channel itself would act as a default Sub Channel. You can access this default sub channel id through defaultSubChannelId
property in class AmityChannel
.
Messages
Sending a message in a Channel or Sub Channel now requires subchannelId
. If you want to send message in default subchannel (i.e the default channel itself), please use defaultSubChannelId
property from AmityChannel
.
For sending message in particular AmitySubchannel, you can get its id from subChannelId
property.
Interface Changes:
@objc
support for all interfaces such as classes, enums, methods, properties are removed. Please create a swift wrapper class to interact with the SDK if your project still uses Objective-C.
Please refer to Using AmitySDK with ObjectiveC section of the documentation for more details.
All Enums with rawType
UInt
has been changed toInt
Swift classes
AmityCollection
Property | Methods | Changes |
---|---|
count() | count() |
|
|
AmityReaction
Property | Methods | Changes |
---|---|
|
|
AmityClient
Property | Methods | Changes | Remarks |
---|---|---|
| Removed | Use |
| Removed | Use |
AmityRegionalEndpoint | Removed | Use |
| Removed | Use |
| Removed | Use |
| Removed | Use |
AmityContentSettings
Property | Methods | Changes | Remarks |
---|---|---|
| Removed | Use |
Channel
Property | Methods | Changes | Remarks |
---|---|---|
totalUnreadCount: | Removed | New property |
| Renamed | Use AmityChannelBuilder instead. |
|
| Class is changed to Enum |
AmityChannel
Property | Methods | Changes | Remarks |
---|---|---|
| Renamed → | |
| Renamed → |
AmityChannelParticipation
Property | Methods | Changes | Remarks |
---|---|---|
| Removed | Use |
| Removed | Use |
AmityMessage
Property | Methods | Changes | Remarks |
---|---|---|
| Removed | Use |
| Removed | Use |
| Renamed → createdAt | |
| Renamed → editedAt | |
flagCount: | flagCount: | |
|
| |
readByCount: | readByCount: | |
childrenNumber: | childrenNumber: | |
channelSegment: | channelSegment: |
AmityMessageRepository
Property | Methods | Changes | Remarks |
---|---|---|
| Removed | Use |
| Removed | Use |
| Removed | Use |
| Removed | Use |
| Removed | Use |
| Removed | Use |
| Removed | Use |
AmityMessageEditor
Property | Methods | Changes | Remarks |
---|---|---|
| Removed | Use |
| Changed | Parameter |
AmityPost
Property | Methods | Changes | Remarks |
---|---|---|
childrenPosts: | childrenPosts: | property is Non-optional |
| Removed | Use |
| Removed | Use |
| Removed | Use |
commentsCount: | commentsCount: | |
flagCount: | flagCount: | |
reactionsCount: | reactionsCount: | |
sharedCount: | sharedCount: |
AmityPollRepository
Property | Methods | Changes | Remarks |
---|---|---|
| Renamed | Use |
| Renamed | Use |
AmityPoll
Property | Methods | Changes |
---|---|
voteCount: | voteCount: |
closedIn: | closedIn: |
AmityPollAnswer
Property | Methods | Changes |
---|---|
voteCount: | voteCount: |
AmityPostRepository
Property | Methods | Changes | Remarks |
---|---|---|
| Renamed |
|
| Renamed |
|
| Renamed |
|
| Renamed |
|
| Renamed |
|
AmityFeedRepository
Property | Methods | Changes | Remarks |
---|---|---|
| Removed | Use equivalent method from |
| Removed | Use equivalent method from |
| Removed | Use equivalent method from |
| Removed | Use equivalent method from |
| Removed | Use equivalent method from |
| Removed | Use equivalent method from |
| Removed | Use equivalent method from |
AmityCommunityRepository
Property | Methods | Changes | Remarks |
---|---|---|
| Removed | Use |
| Removed | Use |
| Removed |
|
| Removed |
|
| Removed |
|
| Removed |
|
| Removed | Use |
AmityCommunity
Property | Methods | Changes |
---|---|
postsCount: | postsCount: |
membersCount: | membersCount: |
AmityCommentRepository
Property | Methods | Changes | Remarks |
---|---|---|
| Removed | Use new method |
| Removed | Use new method |
AmityComment
Property | Methods | Changes | Remarks |
---|---|---|
flagCount: | flagCount: | |
childrenNumber: | childrenNumber: | |
reactionsCount: | reactionsCount: |
AmityUser
Property | Methods | Changes |
---|---|
flagCount: | flagCount: |
| Renamed → |
AmityUserFollowManager
Property | Methods | Changes | Remarks |
---|---|---|
| Removed | Use |
| Removed | Use |
Last updated