Hi friends, Wondering, if any of you have tried u...
# kotlin-native
k
Hi friends, Wondering, if any of you have tried using Realm-Cocoa/Swift in Kotlin Native project? (Using cinterop or CocoaPods or whatever magic) I'm aware of the following issue :) https://github.com/realm/realm-java/issues/5727 Any other experience of using KMP in existing project with Realm would be very helpful... For now, the closest tactic we came up with is having models as interfaces in KMP with generic
Storage
and implementation of
Storage
in android/swift module with actual models... Which quite boring! Thanks in advance! 😉
k
I actually got a prototype of realm working on J2objc before we switched to focusing on KMP. The problem is on the Java side they’re doing class manipulation to make those annotations work. I think you could write an expect/actual wrapper, but you’d also need to write platform specific classes and map onto them. It’ll work, but it’ll be a lot of work.
👍 1
k
1. Also interesting that next version will operate with
frozen objects
2. Another mention of KMP in roadmap:
Realm Database Support for additional platforms and languages, potentially including Future Android Platforms (Kotlin/Flutter)
https://www.mongodb.com/realm#roadmap