rust-mobile / android-activity

Glue for building Rust applications on Android with NativeActivity or GameActivity
238 stars 46 forks source link

Upgrade to `ndk-sys 0.6.0` and `ndk 0.9.0` #155

Closed MarijnS95 closed 4 months ago

MarijnS95 commented 4 months ago

The next breaking ndk release puts a lot of emphasis in improving enums to finally be marked non_exhaustive, and carry possible future values in __Unknown(i32) variants. This removes the lossy conversions that previously required android-activity to redefine its types, which could all be removed again.

The repr() types have also been updated, as enum constants in C are translated to u32 by default in bindgen even though they're commonly passed as int to every API function that consumes them.