EventGet 50% off your ticket to MongoDB.local NYC on May 2. Use code Web50!Learn more >>
MongoDB Developer
Realm
plus
Sign in to follow topics
MongoDB Developer Centerchevron-right
Developer Topicschevron-right
Productschevron-right
Realmchevron-right

Realm Kotlin 0.6.0.

Nabil Hachicha1 min read • Published Nov 23, 2021 • Updated Oct 19, 2022
RealmKotlin
Facebook Icontwitter iconlinkedin icon
Rate this announcement
star-empty
star-empty
star-empty
star-empty
star-empty

Realm Kotlin 0.6.0

We just released v0.6.0 of Realm Kotlin. It contains support for Kotlin/JVM, indexed fields as well as a number of bug fixes.
Build better mobile apps with Atlas Device Sync: Atlas Device Sync is a fully-managed mobile backend-as-a-service. Leverage out-of-the-box infrastructure, data synchronization capabilities, built-in network handling, and much more to quickly launch enterprise-grade mobile apps. Get started now by build: Deploy Sample for Free!

Kotlin/JVM support

The new Realm Kotlin SDK was designed from its inception to support Multiplatform. So far, we’ve been focusing on KMM targets i.e Android and iOS but there was a push from the community to add JVM support, this is now possible using 0.6.0 by enabling the following DSL into your project:
Now your app can target:
Android, iOS, macOS and JVM (Linux since Centos 7, macOS x86_64 and Windows 8.1 64).

What to build with Kotlin/JVM?

Where is it installed?

The native library dependency is extracted from the cinterop-jar and installed into a default location on your machine:
  • Linux:
  • macOS:
  • Windows:

Support Indexed fields

To index a field, use the @Index annotation. Like primary keys, this makes writes slightly slower, but makes reads faster. It’s best to only add indexes when you’re optimizing the read performance for specific situations.

Abstracted public API into interfaces

If you tried out the previous version, you will notice that we did an internal refactoring of the project in order to make public APIs consumable via interfaces instead of classes (ex: Realm and RealmConfiguration), this should increase decoupling and make mocking and testability easier for developers.
🎉 Thanks for reading. Now go forth and build amazing apps with Realm! As always, we’re around on GitHub, Twitter and #realm channel on the official Kotlin Slack.
See the full changelog for all the details.

Facebook Icontwitter iconlinkedin icon
Rate this announcement
star-empty
star-empty
star-empty
star-empty
star-empty
Related
Tutorial

How to Do Full-Text Search in a Mobile App with MongoDB Realm


Jul 14, 2023 | 3 min read
Tutorial

Let’s Give Your Realm-Powered Ionic Web App the Native Treatment on iOS and Android!


Sep 16, 2022 | 7 min read
Article

Announcing the Realm C++ SDK Alpha


Apr 03, 2024 | 5 min read
Tutorial

Authentication for Your iOS Apps with Apple Sign-in and Atlas App Services


Jul 13, 2023 | 6 min read
Table of Contents