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 returnsNone
when the country is unset (akin toConfiguration::language()
). (#220) - Add
MediaCodec
andMediaFormat
bindings. (#216) - Breaking: Upgrade to
ndk-sys 0.4.0
and use newenum
newtype wrappers. (#245) - native_window: Use
release
/acquire
forDrop
andClone
respectively. (#207) - Breaking: audio: Rename from
aaudio
toaudio
and dropA
prefix. (#273) - Implement
HasRawWindowHandle
directly onNativeWindow
. (#274, #319) - Breaking: native_activity: Replace
CStr
return 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
SurfaceTexture
bindings. (#267) - Improve library and structure documentation, linking back to the NDK docs more rigorously. (#290)
- Breaking: input_queue:
get_event()
now returns aResult
withstd::io::Error
;InputQueueError
has been removed. (#292) - Breaking: input_queue:
has_events()
now returns abool
directly without being wrapped inResult
. (#294) - Breaking: hardware_buffer:
HardwareBufferError
has been removed and replaced withstd::io::Error
in return types. (#295) - Fixed
HardwareBuffer
leak on buffers returned fromAndroidBitmap::get_hardware_buffer()
. (#296) - Breaking: Update
jni
crate (used in public API) from0.18
to0.19
. (#300) - hardware_buffer: Made
HardwareBufferDesc
fieldspub
. (#313) - Breaking: Remove
hardware_buffer
andtrace
features in favour of usingapi-level-26
orapi-level-23
directly. (#320)
ndk-build v0.7.0
cargo-apk v0.9.3
ndk-build v0.6.0
cargo-apk v0.9.2
- Move NDK r23
-lgcc
workaround tondk_build::cargo::cargo_ndk()
, to also apply to ourcargo apk --
invocations. (#286) - Disable
aapt
compression for the (default)dev
profile. (#283) - Append
--target
to blanketcargo apk --
calls when not provided by the user. (#287)
cargo-apk v0.9.1
- Reimplement NDK r23
-lgcc
workaround usingRUSTFLAGS
, to apply to transitivecdylib
compilations. (#270)
ndk-build v0.5.0
- Breaking: Default
target_sdk_version
to30
or 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
MAIN
intent filter through a custom serialization function, this is better filled in by
the default setup incargo-apk
. (#241) - Add
android:exported
attribute to the manifest'sActivity
element. (#242) - Add
android:sharedUserId
attribute to the manifest's top-levelmanifest
element. (#252) - Add
queries
element to the manifest's top-levelmanifest
element. (#259)
cargo-apk v0.9.0
- Breaking: Use
min_sdk_version
to 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_version
to30
or 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
package
property to be provided inCargo.toml
. (#236) - Add
MAIN
intent filter infrom_subcommand
instead 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-apk
version 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.0
for cross-version access to the JavaVM
and AndroidContext
.