Skip to content
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

Introduce a Kotlin Multiplatform Mobile library #2

Open
mainrs opened this issue May 16, 2022 · 1 comment
Open

Introduce a Kotlin Multiplatform Mobile library #2

mainrs opened this issue May 16, 2022 · 1 comment

Comments

@mainrs
Copy link

mainrs commented May 16, 2022

KMM is a way to write code that runs on Android, iOS, native and the JVM. Common code is written in Kotlin and platform-specific code can then be used to implement lowlevel details (in this case networking).

The current etebase-java java implementation only works on Android. Rewriting it could make it possible to run it on Android and the JVM. Taking it a step further one could also include iOS support.

I am not familar with how native DLL loading would work in this case. I took a glimse at the code in this repository but do not really understand how it works to be honest. Does the Rust code generate all the necessary classes on built (deterministically)?

@tasn
Copy link
Member

tasn commented May 16, 2022

The Rust code generates a binary and Java code that wraps around and loads this binary.

The reason why it's Android only at the moment is because I wasn't able to find a reliable way to distribute and load binaries on non-Android.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants