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

Support building engine library for desktop multiplatform app #203

Open
hellais opened this issue Oct 22, 2024 · 2 comments
Open

Support building engine library for desktop multiplatform app #203

hellais opened this issue Oct 22, 2024 · 2 comments

Comments

@hellais
Copy link
Member

hellais commented Oct 22, 2024

Currently we don't have tooling to build a jar library that we can load in a kotlin multiplatform desktop app.

Here there is a PR that supposedly does this, but might need some work to get it functioning: https://github.com/golang/mobile/pull/90/files

@sdsantos
Copy link
Collaborator

sdsantos commented Dec 4, 2024

Here is a repository that proves that we can use a go function inside a KMM desktop app: https://github.com/sdsantos/go-desktop/

It uses code found on this github project. Instead of JNI, it uses JNR, to avoid having to right C code and compile it. Here there's a brief explanation on the subject: https://youtu.be/DnaXcXRb7XA?feature=shared&t=474

@sdsantos
Copy link
Collaborator

sdsantos commented Dec 9, 2024

Here is the branch with the proof-of-concept: https://github.com/ooni/probe-multiplatform/tree/desktop-with-jar
It uses the oonimkall engine through a JAR file generated with this gomobile fork: https://github.com/hellais/mobile/tree/plainjava-pr

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

No branches or pull requests

3 participants