You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
kanerogers
changed the title
[Maintenance] Bump ndk-glue to 0.7 and upgrade NDK version to 25.1.8937393
[Maintenance] Update NDK dependencies
Feb 10, 2023
Switching to android-activity seems like a good idea, it'll just take a bit of work. Here's the API for android_activity
use android_activity::AndroidApp;#[no_mangle]fnandroid_main(app:AndroidApp){loop{ app.poll_events(..)}}
This design is a lot cleaner and more - dare I say - it Rusty than ndk-glue as it doesn't require any magic global variables.
However, this would require some updates to Engine as we'd need to pass AndroidApp into it and update its polling logic. Not impossible, but a bit tricky as we'd have to find a way to keep things cross-platform
Background
There's been some activity (pun intended) in the
ndk
crates. rust-mobile/ndk#372In short, it looks like:
ndk-glue
has been deprecated in favour of https://github.com/rust-mobile/android-activityndk
now supports newer versions of the NDK (important, as we're on a pretty old version)In addition:
oboe
now usesndk 0.7
(which we were previously blocked on)This is a good thing, as it should hopefully prevent the landmines of having the NDK crates fall out of sync.
So, what we'll need to do is:
cpal
dependency to get the newer version ofoboe
android-activity
The text was updated successfully, but these errors were encountered: