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()
andSyncSession.getConnectionState()
. - ๐ [ObjectServer] Added support for observing connection changes for a session using
SyncSession.addConnectionChangeListener()
andSyncSession.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()
andSyncSession.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()
andRealm.copyFromRealm()
#(6124).
- [ObjectServer] Added