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

arsd.jni Possible to use D as jni in android studio? #454

Open
Aphexus opened this issue Sep 9, 2024 · 1 comment
Open

arsd.jni Possible to use D as jni in android studio? #454

Aphexus opened this issue Sep 9, 2024 · 1 comment

Comments

@Aphexus
Copy link

Aphexus commented Sep 9, 2024

Do you think it would be possible to use D to write native code in android studio using arsd.jni to interface with kotlin?

@adamdruppe
Copy link
Owner

Yes, that should be doable. Actually, Android is why I wrote the jni lib in the first place (though I never actually used it for anything beyond a hello world there...) But you can compile to a .so and load it, i did helper programs for it https://code.dlang.org/packages/d_android with generated bindings to the android apis (but be warned, using them leads to BRUTALLY SLOW compile times) and it is years old so might not work anymore but still might help you get something going.

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