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.