Realm v4.3.0 Release Notes
Release Date: 2017-12-05 // over 6 years ago-
๐ Deprecated
- ๐ Support for mips devices are deprecated.
RealmQuery.findAllSorted()
andRealmQuery.findAllSortedAsync()
variants in favor of predicateRealmQuery.sort().findAll()
.RealmQuery.distinct()
andRealmQuery.distinctAsync()
variants in favor of predicateRealmQuery.distinctValues().findAll()
โจ Enhancements
- ๐ [ObjectServer] Added explicit support for JSON Web Tokens (JWT) using
SyncCredentials.jwt(String token)
. It requires Object Server 2.0.23+ (#5580). - ๐ Projects using Kotlin now include additional extension functions that make working with Kotlin easier. See docs for more info (#4684).
- ๐ New query predicate:
sort()
. - ๐ New query predicate:
distinctValues()
. Will be renamed todistinct
in next major version. - ๐ The Realm annotation processor now has a stable output when there are no changes to model classes, improving support for incremental compilers (#5567).
๐ Bug Fixes
- โ Added missing
toString()
for the implementation ofOrderedCollectionChangeSet
. - ๐ Sync queries are evaluated immediately to solve the performance issue when the query results are huge,
RealmResults.size()
takes too long time (#5387). - ๐ป Correctly close the Realm instance if an exception was thrown while opening it. This avoids
IllegalStateException
when deleting the Realm in the catch block (#5570). - ๐ Fixed the listener on
RealmList
not being called when removing the listener then adding it again (#5507). Please notice that a similar issue still exists forRealmResults
.
Internal
- ๐ Use
OsList
instead ofOsResults
to add notification token on forRealmList<RealmModel>
. - โก๏ธ Updated Gradle and plugins to support Android Studio
3.0.0
(#5472). - โฌ๏ธ Upgraded to Realm Sync 2.1.8.
- โฌ๏ธ Upgraded to Realm Core 4.0.4.
Credits
- Thanks to @tbsandee for fixing a typo (#5548).
- โก๏ธ Thanks to @vivekkiran for updating Gradle and plugins to support Android Studio
3.0.0
(#5472). - ๐ Thanks to @madisp for adding better support for incremental compilers (#5567).