-
Notifications
You must be signed in to change notification settings - Fork 298
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Kotlin-Native support for multiplatform development #601
Comments
This would require major changes, so it's nothing we could do on the fly. Let's see how many people would be interested in this. |
I don't think this is an objectbox issue. Objectbox is just an external library for the Android platform and it has to exist within an Android module, nothing can be shared on other platforms with regards to ObjectBox. You can, however, have a local data source interface for your models that will be implemented on each platform separately and ObjectBox will do that for the Android platform. |
The 4th item on objectbox.io is "cross platform", and supporting Kotlin/Native would allow using ObjectBox in cross platform projects, which is currently not possible without implementing a higher level abstraction layer. It does seem like a major change, it would at least require converting all the java classes to kotlin, and in the native implementation, call the C library from kotlin instead of using JNI. |
is there an internal branch for this? can we make any contributions? |
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
Very good observation. Because of that effort, we'll watch how much interest this feature request generates. With our limited resources, we will not start on this immediately though. There is a theoretic approach using the C API with Kotlin MP, but that is won't be (as) pretty... |
Has anyone attempted this? |
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
1 similar comment
This comment was marked as spam.
This comment was marked as spam.
In the meantime Kotlin multiplatform gone beta :) Is there any update about support kmm for android and ios? |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as duplicate.
This comment was marked as duplicate.
You have more alternatives for Multiplatform storage: Realm, Sqldelight, Datastore, Multiplatform Settings... No need for Flutter. |
@fcat97 Not Kotlin multi-platform, but ObjectBox is also available for Flutter. Edit: There is also a helpful Stack Overflow response about this. |
Kotlin Multiplatform is now stable. I think, it's a huge opportunity for ObjectBox. Any storage option not supporting Kotlin Multiplatform will probably soon become irrelevant. |
I don't understand why it doesn't work. It works with Kotlin and JavaFX on all 3 Windows, Mac & Linux. Just to clarify for anybody potentially reading this. |
@NobilityDeviant This is likely because the bytecode transformer included in the ObjectBox Gradle plugin does not run. It only works for Java JVM or Android projects. See https://docs.objectbox.io/relations#initialization-magic for details and maybe manual steps you can take. |
Sorry i was really upset the other night. |
Since Android team is now officially supporting Kotlin Multiplatform for shared business logic, is there going to be any progress towards kotlin multiplatform for ObjectBox? |
Note: There is a helpful Stack Overflow response about this.
is there any way that i can use objectbox in kotlin native module and share the bussiness logics in android and ios modules ?
The text was updated successfully, but these errors were encountered: