godot-rust-cli icon indicating copy to clipboard operation
godot-rust-cli copied to clipboard

Android support

Open dancodedev opened this issue 4 years ago • 10 comments

Hi, thanks for making this library. Is there any possibility to add Android compatibility

Thanks.

dancodedev avatar Mar 18 '21 23:03 dancodedev

Hi @dancodedev thanks for the suggestion,

I can definitely add android build support, I need to add it and thoroughly test it so I would say it can probably be implemented by this coming Saturday.

robertcorponoi avatar Mar 19 '21 02:03 robertcorponoi

What a great news.

After many hours I managed to run rust in godot, but it was too difficult for my level. I hope this functionality comes soon. Thanks

dancodedev avatar Mar 19 '21 17:03 dancodedev

No problem,

I tried to make it as simple as possible but if you have any suggestions on how to make it even more simple or if some of the documentation could be better please let me know.

robertcorponoi avatar Mar 19 '21 17:03 robertcorponoi

@robertcorponoi sorry, I have explained myself wrong. I was referring to using rust without your library. That was what cost me a lot.

dancodedev avatar Mar 20 '21 10:03 dancodedev

Hey sorry about the delay on this, currently working on it but running into issues with testing using an android emulator so I'll keep you updated.

robertcorponoi avatar Mar 28 '21 23:03 robertcorponoi

@dancodedev Are you developing on Linux? I'm looking more into Godot Rust and it seems that Android support is only on Linux currently.

robertcorponoi avatar Apr 02 '21 19:04 robertcorponoi

@robertcorponoi I am currently programming in windows, But I can use wsl a linux subsystem inside windows without problem.

Thanks a lot.

dancodedev avatar Apr 07 '21 09:04 dancodedev

@dancodedev I'm not sure if you're still around and need this but I've recently been trying to get it working but I'm having a hard time setting up Android Studio to work with wsl2. Is this something you have done already? Are you able to test APKs from wsl2 with Android Studio in Windows?

robertcorponoi avatar Jun 22 '21 22:06 robertcorponoi

@robertcorponoi

Hi, I have not tried to configure android studio with wsl2 but I can try.

One question, you in linux native can already compile for android? Is the problem only in windowds wsl?

dancodedev avatar Jun 23 '21 11:06 dancodedev

@dancodedev I'm currently working on a command to add toolchains so you will be able to "technically" compile it for android in Linux. I'm able to generate the APK in Godot but I can't test it in a virtual device because it won't open in VirtualBox. I'll have to get a Linux machine or dual boot to really test it.

robertcorponoi avatar Jun 23 '21 20:06 robertcorponoi