Realm v2.1.0 Release Notes
Release Date: 2016-10-25 // over 7 years ago-
๐ฅ Breaking changes
- ๐ *
SecureUserStore
has been moved to its own GitHub repository: https://github.com/realm/realm-android-user-store See https://github.com/realm/realm-android-user-store/blob/master/README.md for further info on how to include it.
Object Server API Changes (In Beta)
- ๐ Renamed
User
toSyncUser
,Credentials
toSyncCredentials
andSession
toSyncSession
to align names with Cocoa. - โ Removed
SyncManager.setLogLevel()
. UseRealmLog.setLevel()
instead. - ๐
SyncUser.logout()
now correctly clearsSyncUser.currentUser()
(#3638). - ๐ง Missing ProGuard configuration for libraries used by Sync extension (#3596).
- ๐ Error handler was not called when sync session failed (#3597).
- โ Added
User.all()
that returns all known Realm Object Server users. - โฌ๏ธ Upgraded Realm Sync to 1.0.0-BETA-3.2
๐ Deprecated
Logger
. UseRealmLogger
instead.AndroidLogger
. The logger for Android is implemented in native code instead.
๐ Bug fixes
- ๐ฆ The following were not kept by ProGuard: names of native methods not in the
io.realm.internal
package, names of classes used in method signature (#3596). - Permission error when a database file was located on external storage (#3140).
- Memory leak when unsubscribing from a RealmResults/RealmObject RxJava Observable (#3552).
โจ Enhancements
Realm.compactRealm()
now works for encrypted Realms.- โ Added
first(E defaultValue)
andlast(E defaultValue)
methods toRealmList
andRealmResult
. These methods will return the provided object instead of throwing anIndexOutOfBoundsException
if the list is empty. - โฌ๏ธ Reduce transformer logger verbosity (#3608).
- ๐ฒ
RealmLog.setLevel(int)
for setting the log level across all loggers.
Internal
- โฌ๏ธ Upgraded Realm Core to 2.1.3
Credits
- 0๏ธโฃ Thanks to Max Furman (@maxfurman) for adding support for
first()
andlast()
default values.
- ๐ *