On Monday, 6 April 2020 at 08:38:03 UTC, Jan Hönig wrote:
Is there some "Hello World!" example for D on Android?
So I did a tiny thing in the repo:
https://github.com/adamdruppe/d_android/tree/master/android-dub-test
if you open that in android studio it should load up, and the
makefile is commented, but tells you the 8 commands (4 dub
builds, 4 file copies, just doing the same things for each of the
4 android architecture targets) to do a full add.
The main program is still in Java - there's a way to do pure D,
the NDK's NativeActivity, but I never tried it personally (tbh
I've only actually done hello world in android at all, i have
zero interest in mobile dev, i just did it cuz someone had to do
something and the JNI meta code was kinda cool) - but then you
can call to/from D/java with native methods.
However there is just so much to know.
It is really overwhelming.
no kidding, I spent several weekends just trying to understand
the setup and build process. And I still basically don't really
know, which is why my thing there builds the D code externally
and copies the files where gradle can find them instead of
actually changing the gradle config.