Realm v0.77 Release Notes

Release Date: 2015-01-16 // over 9 years ago
    • ➕ Added Realm.allObjectsSorted() and RealmQuery.findAllSorted() and extending RealmResults.sort() for multi-field sorting.
    • ➕ Added more logging capabilities at the JNI level.
    • ➕ Added proper encryption support. NOTE: The key has been increased from 32 bytes to 64 bytes (see example).
    • ➕ Added support for unmanaged objects and custom constructors.
    • ➕ Added more precise imports in proxy classes to avoid ambiguous references.
    • ➕ Added support for executing a transaction with a closure using Realm.executeTransaction().
    • ➕ Added RealmObject.isValid() to test if an object is still accessible.
    • 👍 RealmResults.sort() now has better error reporting.
    • 🛠 Fixed bug when doing queries on the elements of a RealmList, ie. like Realm.where(Foo.class).getBars().where().equalTo("name").
    • 🛠 Fixed bug causing refresh() to be called on background threads with closed Realms.
    • 🛠 Fixed bug where calling Realm.close() too many times could result in Realm not getting closed at all. This now triggers a log warning.
    • Throw NoSuchMethodError when RealmResults.indexOf() is called, since it's not implemented yet.
    • 👌 Improved handling of empty model classes in the annotation processor
    • ✂ Removed deprecated static constructors.
    • Introduced new static constructors based on File instead of Context, allowing to save Realm files in custom locations.
    • 🚚 RealmList.remove() now properly returns the removed object.
    • ⚡️ Calling realm.close() no longer prevent updates to other open realm instances on the same thread.