Open VZout opened 4 years ago
The only way it works currently is with https://github.com/goddessfreya/winit/pull/2. The current cargo-apk implementation is in https://github.com/rust-windowing/android-ndk-rs
Thanks for your reply. I'm slightly confused. Will android-glue
be completely deprecated in favor of android-ndk-rs
? What is exactly the difference between glue and android-ndk-rs?
yes, this repo is deprecated. the difference is that one is maintained while the other is not. @Osspial can we archive this repo?
Does android-ndk-rs
work with winit 0.19?
No, winit needs to integrate with the native activity. Here the native-app-glue is used to interact with the native activity. But there are multiple issues with that, for example native-app-glue doesn't handle orientation changes or viewport changes when the keyboard pops up. android-ndk-rs
uses the native activity directly.
Thanks to @JasperDeSutter there's android support in winit master now https://github.com/rust-windowing/winit/pull/1556/
I'm trying to use cargo-apk with winit 0.19.0.
Sadly when I run
cargo apk build --target ...
I get the following error:What causes this issue? Is it because winit is a dependency and I don't use android_glue directly?