orbtk icon indicating copy to clipboard operation
orbtk copied to clipboard

Android support

Open FloVanGH opened this issue 4 years ago • 10 comments

Context

OrbTk applications should be run on the mobile operating system Android https://www.android.com.

Problem description & Solution

It should be possible to build, run and deploy OrbTk applications on Android.

FloVanGH avatar Dec 03 '19 19:12 FloVanGH

What is the current plan for this? I tried to run the examples with cargo-node and while the build process and the installation worked fine, input didn't work. The widgets didn't respond to anything.

SolidTux avatar Mar 03 '20 22:03 SolidTux

@SolidTux OrbTk does not support touch input at the moment. But I will soon work on it. Hopefully we have someone that could work on a native Android support this month.

FloVanGH avatar Mar 04 '20 06:03 FloVanGH

Ah, I though the touch stuff is only for multi touch and gestures and that normal clicking is just mouse input. Thanks for clarifying!

SolidTux avatar Mar 04 '20 10:03 SolidTux

@SolidTux OrbTk provides now an initial touch support on web, text input does not work at the moment.

FloVanGH avatar Mar 04 '20 15:03 FloVanGH

Hello thanks for your hard work. I do appreciate it.

when do you think it will be implemented. is there any plan like 2020,2021

because I am beginner and I really want to learn rust(for mobile android and ios) but if it will take long time like 2024 maybe I will change to flutter. but if it will take less time I will keep learning rust.

so please what are blockers right now? from your project and other projects? and when do you think to solve it?

thanks I am really appreciate your works again and thanks

adals avatar Jun 01 '20 17:06 adals

@adals I think it is still work in progress, I didn't try OrbTk yet, through the README mentions it is already doable via cargo-node but with some caveats. Native Android support is still "planned".

FWIW, I also started learning Rust months ago and was looking for Android support so I started to follow OrbTk and this issue thread. I would say it is still possible to start learning Rust and plan some projects for mobile platforms in the future. I'm working with godot-rust maintainers and can tell Godot Engine can export games for Android and support Rust, via a C++ API (GDNative), this is not exactly ✌️true native Rust support✌️ but I found it to be a viable solution so I could learn Rust and ~~try to~~ compile project for multiple platforms, while waiting for Android support in OrbTk.

tommywalkie avatar Jun 01 '20 18:06 tommywalkie

@tommywalkie thanks for your clarifications. I got it now and will keep learning with a hope to compile apps like flutter in rust in the near future

adals avatar Jun 02 '20 10:06 adals

I think it is realistic that we have native Android support this year. I'm currently work on a new backend, that willl make it a lot easier to implement Android support.

FloVanGH avatar Jun 02 '20 11:06 FloVanGH

@adals I found this article about using rust and flutter. In the article it says dart support ffi. Theoretical you can code in rust, then call rust in dart. (I am a total beginner)😅

Kylekibet avatar Jul 23 '20 11:07 Kylekibet

@Kylekibet and @adals there is also an project to use flutter with rust https://github.com/flutter-rs/flutter-rs.

Otherwise I am confident that we could Android support for OrbTk soon.

FloVanGH avatar Jul 23 '20 11:07 FloVanGH