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.
The next breaking
ndk
release puts a lot of emphasis in improvingenum
s to finally be markednon_exhaustive
, and carry possible future values in__Unknown(i32)
variants. This removes the lossy conversions that previously requiredandroid-activity
to redefine its types, which could all be removed again.The
repr()
types have also been updated, asenum
constants in C are translated tou32
by default inbindgen
even though they're commonly passed asint
to every API function that consumes them.