LayerKit v0.22.0 Release Notes
-
๐ This release includes a number of public API changes to make development with LayerKit easier and more expressive in Swift. We have added real classes and types for configuration
options
that previously accepted dictionaries and modeled typing indicators as a class.Public API Changes
- ๐ง Introduced the
LYRClientOptions
object which provides for configuring synchronization options for anLYRClient
instance. - The
LYRClient
initialization method has been changed. It now takes anLYRClientDelegate
instance which is required and the options argument has changed fromNSDictionary
toLYRClientOptions
. - ๐ Renamed
LYRClientSynchronizationPolicyMessageCount
toLYRClientSynchronizationPolicyPartialHistory
. - ๐ Introduced the
LYRConversationOptions
object meant for configuring conversation instance upon initialization. It replaces theLYRConversationOptionsMetadataKey
,LYRConversationOptionsDeliveryReceiptsEnabledKey
andLYRConversationOptionsDistinctByParticipantsKey
which was previously passed through the options argument with a dictionary. - ๐ง Introduced the
LYRMessageOptions
object meant for configuring message instance upon initialization. It replaces theLYRMessageOptionsPushNotificationConfigurationKey
, which was previously passed through the options argument with a dictionary. - Introduced the
LYRTypingIndicator
object that gets bundles in theuserInfo
of theLYRConversationDidReceiveTypingIndicatorNotification
. It replaces the previouslyNSNumber
wrapped typing indicator ENUM values that were bundled in the notification'suserInfo
.
โจ Enhancements
- ๐ Improved performance of messaging after the initial synchronization finishes.
๐ Bug Fixes
- ๐ Fixes an issue where the client wouldn't synchronize a newly received conversation, if the app is brought into the foreground by a remote notification.
- ๐ Fixes a crash that could happen during the synchronization process, when processing deleted conversations.
- ๐ Fixes an issue where the client would synchronize the complete history, even when configured with a different synchronization policy.
- ๐ Fixed a crash in the
LYRExternalContentPreparationOperation
that occurs during cancellation of a Rich Content transfer. [APPS-2476]
- ๐ง Introduced the