Realm v5.5.0 Release Notes

Release Date: 2018-08-31 // over 5 years ago
  • โœจ Enhancements

    • [ObjectServer] Added ConnectionState enum describing the states a connection can be in.
    • ๐Ÿ”€ [ObjectServer] Added SyncSession.isConnected() and SyncSession.getConnectionState().
    • ๐Ÿ”€ [ObjectServer] Added support for observing connection changes for a session using SyncSession.addConnectionChangeListener() and SyncSession.removeConnectionChangeListener().
    • ๐Ÿ”€ [ObjectServer] Added Kotlin extension property Realm.syncSession for synchronized Realms.
    • [ObjectServer] Added Kotlin extension method Realm.classPermissions<RealmModel>().
    • ๐Ÿ”€ [ObjectServer] Added support for starting and stopping synchronization using SyncSession.start() and SyncSession.stop() (#6135).
    • [ObjectServer] Added API's for making it easier to work with network proxies (#6163):
      • SyncManager.setAuthorizationHeaderName(String headerName)
      • SyncManager.setAuthorizationHeaderName(String headerName, String host)
      • SyncManager.addCustomRequestHeader(String headerName, String headerValue)
      • SyncManager.addCustomRequestHeader(String headerName, String headerValue, String host)
      • SyncManager.addCustomRequestHeaders(Map<String, String> headers)
      • SyncManager.addCustomRequestHeaders(Map<String, String> headers, String host)
      • SyncConfiguration.Builder.urlPrefix(String prefix)

    ๐Ÿ›  Fixed

    • ๐Ÿ“ฆ Methods and classes requiring synchronized Realms have been removed from the standard AAR package. They are now only visible when enabling synchronized Realms in Gradle. The methods and classes will still be visible in the source files and docs, but annotated with @ObjectServer (#5799).

    Internal

    • โšก๏ธ Updated to Realm Sync 3.9.4
    • โšก๏ธ Updated to Realm Core 5.8.0
    • โšก๏ธ Updated to Object Store commit: b0fc2814d9e6061ce5ba1da887aab6cfba4755ca

    Credits

    • ๐ŸŽ Thanks to @lucasdornelasv for improving the performance of Realm.copyToRealm(), Realm.copyToRealmOrUpdate() and Realm.copyFromRealm() #(6124).