Is realm-kotlin on the roadmap?
It would be great for (iOS/Android) cross-platform development and code sharing of business logic. Kotlin/Native support is still early but multi-platform is coming https://github.com/JetBrains/kotlin-native/pull/1102 and iOS support exists.
Otherwise, do you plan to do an abstraction over realm-java and realm-cocoa ?
Currently, there are no plans to develop a Kotlin/Native binding as that would require rewriting/duplicating a large portion of our internal code.
More likely is that we will ship a full native C++ binding that can be used if you want to share logic between platforms. We already have a C++ API, but it isn't part of the public API and thus subject to change without any notice.
But lets keep this issue open in order to track interest.
@cmelchior the Object Store?
Yes, that isn't a public API as such either. Just a bridge between the underlying Core API and the API exposed in Java/JavaScript/Swift/.NET
But yes, if you wanted you could write your shared logic in that, but we are not promising API stability there either.
It's been almost a year since someone posted and Kotlin Multi-Platform is almost fully here. Just wanted to declare my interest in a Multi-Platform Kotlin Realm library.
Interested!
Interested!
And I may work on it !!
look forward
Interested!
Interested!
Interested!
If this existed, I would already have a fully functional multiplatform project, how not to be interested?
Realm is great, if you could share cross-platform logic with realm it would be simply sublime
Sooo this maybe a dumn question but. If I have kotlin multiplatform project and in common module I write Realm logic I wont be able to use it in ios porject the same way as I use for example Retrofit?
Not right now. The Realm Java SDK would only work in the Android sourceset of the KMP project.
We have however started on the initial steps for supporting Realm in the common parts of a KMP project, but we are still a bit away from releasing any details and possible release dates.
Interested also! :)
Not right now. The Realm Java SDK would only work in the Android sourceset of the KMP project.
We have however started on the initial steps for supporting Realm in the common parts of a KMP project, but we are still a bit away from releasing any details and possible release dates.
This sounds great, I鈥檓 looking forward to any news regarding Realm and Kotlin Multiplatform!
Is realm-kotlin on the roadmap?
Realm Kotlin is indeed on our roadmap and we have been working on it for a while. It is going to be a Kotlin SDK targeting Kotlin Multiplatform and Android. It can be found in the new Realm Kotlin repo we just open-sourced: https://github.com/realm/realm-kotlin
The project is still in very early stages, so nothing has been finalized yet. But we encourage any feedback you might have regarding the API or use cases in the new repo.
I'll close the issue here and redirect to https://github.com/realm/realm-kotlin for more information.
Most helpful comment
It's been almost a year since someone posted and Kotlin Multi-Platform is almost fully here. Just wanted to declare my interest in a Multi-Platform Kotlin Realm library.