LayerKit v0.21.0 Release Notes

  • โœจ Enhancements

    • Introduced LYRSession class to provide applications with the ability to manage multiple user sessions simultaneously.
    • โž• Added functionality to allow applications to switch user sessions without deauthenticating.
    • ๐ŸŽ Performance improvement in the synchronization process.

    Public API Changes

    • โž• Added LYRSession object.
    • โž• Added currentSession property to LYRClient.
    • โž• Added sessions property to LYRClient.
    • โž• Added newSessionWithIdentifier: method to LYRClient.
    • โž• Added sessionWithUserIdentifier: method to LYRClient.
    • โž• Added switchToSession:error: method to LYRClient.
    • โž• Added destroySession:error: method to LYRClient.
    • ๐Ÿšš Deprecated addPolicy:error: in favor of addPolicies:error: and removePolicy:error: in favor of removePolicies:error: which provides for performing bulk policy operations.

    ๐Ÿ› Bug Fixes

    • ๐Ÿ›  Fixes an issue where the client might crash with an exception ('Task created in a session that has been invalidated') during the de-authentication process or then disconnecting the client by hand.
    • ๐Ÿ›  Fixes an issue where the client might crash with EXC_CRASH (SIGABRT) when it's downloading a lot of message parts at the time.
    • ๐Ÿ›  Fixes an issue which caused the client to improperly handle calls to addPolicy:error or removePolicy:error: when called multiple times in rapid succession.
    • ๐Ÿ›  Fixes an issue where the client might crash when trying to handle an internal error.
    • ๐Ÿ›  Fixes an issue that could prevent a client from reauthenticating after receiving an authentication challenge.
    • ๐Ÿ›  Fixes an issue that could lead to a crash during multiple calls to deauthenticateWithCompletion:.
    • ๐Ÿ›  Fixes an issue where the client could materialize a deleted conversation with no messages.