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 to Int

  • Swift classes

AmityCollection

AmityReaction

AmityClient

AmityContentSettings

Channel

AmityChannel

AmityChannelParticipation

AmityMessage

AmityMessageRepository

AmityMessageEditor

AmityPost

AmityPollRepository

AmityPoll

AmityPollAnswer

AmityPostRepository

AmityFeedRepository

AmityCommunityRepository

AmityCommunity

AmityCommentRepository

AmityComment

AmityUser

AmityUserFollowManager

Last updated