Releases: rust-mobile/ndk
Releases · rust-mobile/ndk
ndk-glue v0.7.0
ndk v0.7.0
- hardware_buffer: Make
HardwareBuffer::as_ptr()public for interop with Vulkan. (#213) - Breaking:
Configuration::country()now returnsNonewhen the country is unset (akin toConfiguration::language()). (#220) - Add
MediaCodecandMediaFormatbindings. (#216) - Breaking: Upgrade to
ndk-sys 0.4.0and use newenumnewtype wrappers. (#245) - native_window: Use
release/acquireforDropandClonerespectively. (#207) - Breaking: audio: Rename from
aaudiotoaudioand dropAprefix. (#273) - Implement
HasRawWindowHandledirectly onNativeWindow. (#274, #319) - Breaking: native_activity: Replace
CStrreturn types withPath. (#279) - native_window: Add
format()getter andset_buffers_geometry()setter. (#276) - native_activity: Add
set_window_format()setter. (#277) - native_activity: Add
set_window_flags()to change window behavior. (#278) - Add
SurfaceTexturebindings. (#267) - Improve library and structure documentation, linking back to the NDK docs more rigorously. (#290)
- Breaking: input_queue:
get_event()now returns aResultwithstd::io::Error;InputQueueErrorhas been removed. (#292) - Breaking: input_queue:
has_events()now returns abooldirectly without being wrapped inResult. (#294) - Breaking: hardware_buffer:
HardwareBufferErrorhas been removed and replaced withstd::io::Errorin return types. (#295) - Fixed
HardwareBufferleak on buffers returned fromAndroidBitmap::get_hardware_buffer(). (#296) - Breaking: Update
jnicrate (used in public API) from0.18to0.19. (#300) - hardware_buffer: Made
HardwareBufferDescfieldspub. (#313) - Breaking: Remove
hardware_bufferandtracefeatures in favour of usingapi-level-26orapi-level-23directly. (#320)
ndk-build v0.7.0
cargo-apk v0.9.3
ndk-build v0.6.0
cargo-apk v0.9.2
- Move NDK r23
-lgccworkaround tondk_build::cargo::cargo_ndk(), to also apply to ourcargo apk --invocations. (#286) - Disable
aaptcompression for the (default)devprofile. (#283) - Append
--targetto blanketcargo apk --calls when not provided by the user. (#287)
cargo-apk v0.9.1
- Reimplement NDK r23
-lgccworkaround usingRUSTFLAGS, to apply to transitivecdylibcompilations. (#270)
ndk-build v0.5.0
- Breaking: Default
target_sdk_versionto30or lower (instead of the highest supported SDK version by the detected NDK toolchain)
for more consistent interaction with Android backwards compatibility handling and its increasingly strict usage rules:
https://developer.android.com/distribute/best-practices/develop/target-sdk - Breaking: Remove default insertion of
MAINintent filter through a custom serialization function, this is better filled in by
the default setup incargo-apk. (#241) - Add
android:exportedattribute to the manifest'sActivityelement. (#242) - Add
android:sharedUserIdattribute to the manifest's top-levelmanifestelement. (#252) - Add
querieselement to the manifest's top-levelmanifestelement. (#259)
cargo-apk v0.9.0
- Breaking: Use
min_sdk_versionto select compiler target instead oftarget_sdk_version. (#197)
See https://developer.android.com/ndk/guides/sdk-versions#minsdkversion for more details. - Breaking: Default
target_sdk_versionto30or lower (instead of the highest supported SDK version by the detected NDK toolchain)
for more consistent interaction with Android backwards compatibility handling and its increasingly strict usage rules:
https://developer.android.com/distribute/best-practices/develop/target-sdk
(#203) - Allow manifest
packageproperty to be provided inCargo.toml. (#236) - Add
MAINintent filter infrom_subcommandinstead of relying on a custom serialization function inndk-build. (#241) - Export the sole
NativeActivity(throughandroid:exported="true") to allow it to be started by default if targeting Android S or higher. (#242) cargo-apkversion can now be queried throughcargo apk version. (#218)- Environment variables from
.cargo/config.toml's[env]section are now propagated to the process environment. (#249)
ndk-glue v0.5.1
- Initialize
ndk-context 0.1.0for cross-version access to the JavaVMand AndroidContext.