www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Where is the latest android dev info?

reply BetaDamnit <Beta Beta.com> writes:
See Title!
Mar 23 2020
parent reply Adam D. Ruppe <destructionator gmail.com> writes:
My thingy can help

https://github.com/adamdruppe/d_android

a lot is built into ldc now too which is really nice as well.

i need to update my repo to use the new ldc features, hoping to 
tomorrow. i'm just behind on a lot of things lol
Mar 23 2020
parent reply BetaDamnit <Beta Beta.com> writes:
On Monday, 23 March 2020 at 15:39:27 UTC, Adam D. Ruppe wrote:
 My thingy can help

 https://github.com/adamdruppe/d_android

 a lot is built into ldc now too which is really nice as well.

 i need to update my repo to use the new ldc features, hoping to 
 tomorrow. i'm just behind on a lot of things lol
Maybe you have some free time with nCoV? It seems rather straight forward, just use ldc2, ndk linker, and proper linking to android libs to use the functionality(I assume there is no import lists or header translations?)? I imagine this does not create an apk either? [I do see you have bindings but I haven't looked in to them. Ideally there would be proper D support, at least for the typical android functionality] Maybe a good time with nCoV ravishing thee world to get android going for dmd? I mean, for those that are not dead. It would be a good way to "self isolate" that doesn't involve porn hub...
Mar 26 2020
parent Adam D. Ruppe <destructionator gmail.com> writes:
On Thursday, 26 March 2020 at 10:07:35 UTC, BetaDamnit wrote:
 Maybe you have some free time with nCoV?
nope, it is even worse for my time right now.....
 It seems rather straight forward, just use ldc2, ndk linker, 
 and proper linking to android libs to use the functionality
Yeah, that's what it all does. My repo there works with ldc 1.19 today, just not the new 1.20 yet. You can see in the code how simple it is - really just sets up a config file and downloads the runtime libraries. Then there's bindings in there for the NDK headers, a helper file for some hacks (one of which is no longer necessary with 1.20!), and also Java JNI bindings if you choose to use them (they a bit slow to compile though).
 I imagine this does not create an apk either?
no, it compiles into a shared lib, then you add that to an android studio project and create the apk that way. There's also ways to do apks from the command line with the official android tools that should work here, just that's outside the scope of my little project.
 Maybe a good time with nCoV ravishing thee world to get android 
 going for dmd?
That will never happen. But ldc works today! I think gdc kinda works if you set it up right, but ldc is pretty easy, you don't even need my helper lib really, it just makes it a bit easier by helping set up and providing a bindings package.
Mar 26 2020