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 an LYRClient instance.
    • The LYRClient initialization method has been changed. It now takes an LYRClientDelegate instance which is required and the options argument has changed from NSDictionary to LYRClientOptions.
    • ๐Ÿ“‡ Renamed LYRClientSynchronizationPolicyMessageCount to LYRClientSynchronizationPolicyPartialHistory.
    • ๐Ÿ“‡ Introduced the LYRConversationOptions object meant for configuring conversation instance upon initialization. It replaces the LYRConversationOptionsMetadataKey, LYRConversationOptionsDeliveryReceiptsEnabledKey and LYRConversationOptionsDistinctByParticipantsKey which was previously passed through the options argument with a dictionary.
    • ๐Ÿ”ง Introduced the LYRMessageOptions object meant for configuring message instance upon initialization. It replaces the LYRMessageOptionsPushNotificationConfigurationKey, which was previously passed through the options argument with a dictionary.
    • Introduced the LYRTypingIndicator object that gets bundles in the userInfo of the LYRConversationDidReceiveTypingIndicatorNotification. It replaces the previously NSNumber wrapped typing indicator ENUM values that were bundled in the notification's userInfo.

    โœจ 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]