Realm v4.3.0 Release Notes

Release Date: 2017-12-05 // over 6 years ago
  • ๐Ÿ—„ Deprecated

    • ๐Ÿ‘Œ Support for mips devices are deprecated.
    • RealmQuery.findAllSorted() and RealmQuery.findAllSortedAsync() variants in favor of predicate RealmQuery.sort().findAll().
    • RealmQuery.distinct() and RealmQuery.distinctAsync() variants in favor of predicate RealmQuery.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 to distinct 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 of OrderedCollectionChangeSet.
    • ๐ŸŽ 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 for RealmResults.

    Internal

    • ๐Ÿ‘‰ Use OsList instead of OsResults to add notification token on for RealmList<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).