Releases: rust-mobile/ndk
Releases · rust-mobile/ndk
ndk-sys v0.6.0
ndk v0.9.0
- Move
MediaFormat
frommedia::media_codec
to its ownmedia::media_format
module. (#442) - media_format: Expose
MediaFormat::copy()
andMediaFormat::clear()
from API level 29. (#449) - Breaking: media_format: Mark all
fn set_*()
andfn str()
as takingself
by&mut
. (#452) - Breaking: Require all
dyn Fn*
types to implementSend
when the FFI implementation invokes them on a separate thread: (#455)audio::AudioStreamDataCallback
;audio::AudioStreamErrorCallback
;media::image_reader::BufferRemovedListener
;media::image_reader::ImageListener
;media::media_codec::ErrorCallback
;media::media_codec::FormatChangedCallback
;media::media_codec::InputAvailableCallback
;media::media_codec::OutputAvailableCallback
.
- Drop previous
Box
ed callbacks after registering new ones, instead of before. (#455) - input_queue: Add
from_java()
constructor, available since API level 33. (#456) - event: Add
from_java()
constructors toKeyEvent
andMotionEvent
, available since API level 31. (#456) - Breaking: image_reader: Special-case return statuses in
Image
-acquire functions. (#457) - Breaking: image_reader: Mark
ImageReader::acquire_latest_image_async()
unsafe
to match the safety requirements onImageReader::acquire_next_image_async()
. (#457) - event: Implement
SourceClass
bitflag
and provideSource::class()
getter. (#458) - Ensure all
bitflags
implementations consider all (including unknown) bits in negation andall()
. (#458) - Breaking: Mark all enums as
non_exhaustive
and fixrepr
types. (#459) - Breaking: native_window: Remove redundant
TRANSFORM_
prefix fromNativeWindowTransform
variants. (#460) - Breaking: hardware_buffer: Convert
HardwareBufferUsage
tobitflags
. (#461) - bitmap: Guard
BitmapCompressError
behind missingapi-level-30
feature. (#462) - native_window: Require linking against
libnativewindow
for most API >= 26 functions. (#465) - Breaking: audio: Merge
AudioResult
variant enum intoAudioError
. (#467) - data_space: Add missing
DataSpaceRange::Unspecified
variant. (#468) - Breaking: looper: Require
Send
marker when adding fd event callbacks onForeignLooper
. (#469) - Breaking: Upgrade to
ndk-sys 0.6.0
. (#472)
ndk-sys v0.5.0
ndk v0.8.0
- event: Add
tool_type
getter forPointer
. (#323) - input_queue: Allow any non-zero return code from
pre_dispatch()
again, as per documentation. (#325) - asset: Use entire asset length when mapping buffer. (#387)
- Bump MSRV to 1.66 for
raw-window-handle 0.5.1
,num_enum
'scatch_all
with arbitrary enum discriminants. (#388, #431) - Bump optional
jni
dependency for doctest example from0.19
to0.21
. (#390) - Breaking: Upgrade to
ndk-sys 0.5.0
. (#370) - Breaking: Upgrade
bitflags
crate from1
to2
. (#394) - bitmap: Add
try_format()
toAndroidBitmapInfo
to handle unexpected formats without panicking. (#395) - Add
Font
bindings. (#397) - Breaking: Upgrade
num_enum
crate from0.5.1
to0.7
. (#398, #419) - Breaking: Renamed, moved and flattened "
media
" error types and helpers to a newmedia_error
module. (#399, #432) - Breaking: media_codec: Wrap common dequeued-buffer status codes in enum. (#401)
- Breaking: media_codec: Return
MaybeUninit
bytes inbuffer_mut()
. (#403) - native_window: Add
lock()
to blit raw pixel data. (#404) - hardware_buffer_format: Add
YCbCr_P010
andR8_UNORM
variants. (#405) - Breaking: hardware_buffer_format: Add catch-all variant. (#407)
- asset: Add missing
is_allocated()
andopen_file_descriptor()
methods. (#409) - Breaking: media_codec: Add support for asynchronous notification callbacks. (#410)
- Add panic guards to callbacks. (#412)
- looper: Add
remove_fd()
to unregister events/callbacks for a file descriptor. (#416) - Breaking: Use
BorrowedFd
andOwnedFd
to clarify possible ownership transitions. (#417) - Breaking: Upgrade to
ndk-sys 0.5.0
. (#420) - Add bindings for
sync.h
. (#423) - Breaking: bitmap: Provide detailed implementation for
AndroidBitmapInfoFlags
. (#424) - native_window: Add
set_buffers_transform()
,try_allocate_buffers()
andset_frame_rate*()
. (#425) - Add bindings for
ASharedMemory
. (#427) - hardware_buffer: Add
id()
to retrieve a system-wide unique identifier for aHardwareBuffer
. (#428) - Breaking: bitmap: Strip
Android
prefix from structs and enums, andBitmap
fromResult
. (#430) - Breaking:
raw-window-handle 0.5
support is now behind an optionalrwh_05
crate feature andraw-window-handle
0.4
and0.6
support is provided via the newrwh_04
and (default-enabled)rwh_06
crate features. (#434) - Breaking: looper: Provide
event
value to file descriptor poll callback. (#435) - Breaking:
HardwareBufferFormat
is no longer exported fromhardware_buffer
andnative_window
, and can only be reached through thehardware_buffer_format
module. (#436) - Breaking:
get_
prefixes have been removed from all public functions in light of the C-GETTER convention. (#437) - Add
DataSpace
type and relevant functions onBitmap
andNativeWindow
. (#438) - bitmap: Add
Bitmap::compress()
andBitmap::compress_raw()
functions. (#440) - Breaking: Turn
BitmapError
into anon_exhaustive
enum
. (#440) - Breaking: audio: Rename
AudioErrorResult
toAudioResult
and turn into anon_exhaustive
enum
. (#441)
ndk-sys v0.5.0 beta.0
ndk v0.8.0 beta.0
- event: Add
tool_type
getter forPointer
. (#323) - input_queue: Allow any non-zero return code from
pre_dispatch()
again, as per documentation. (#325) - asset: Use entire asset length when mapping buffer. (#387)
- Bump MSRV to 1.64 for
raw-window-handle 0.5.1
. (#388) - Bump optional
jni
dependency for doctest example from0.19
to0.21
. (#390) - Breaking: Upgrade to
ndk-sys 0.5.0
. (#370) - Breaking: Upgrade
bitflags
crate from1
to2
. (#394) - bitmap: Add
try_format()
toAndroidBitmapInfo
to handle unexpected formats without panicking. (#395) - Breaking: Upgrade
num_enum
crate from0.5.1
to0.7
. (#398, #419) - Breaking: Renamed and moved "
media
" error types and helpers to a newmedia_error
module. (#399) - Breaking: media_codec: Wrap common dequeued-buffer status codes in enum. (#401)
- Breaking: media_codec: Return
MaybeUninit
bytes inbuffer_mut()
. (#403) - native_window: Add
lock()
to blit raw pixel data. (#404) - hardware_buffer_format: Add
YCbCr_P010
andR8_UNORM
variants. (#405) - Breaking: hardware_buffer_format: Add catch-all variant. (#407)
- Breaking: media_codec: Add support for asynchronous notification callbacks. (#410)
- Add panic guards to callbacks. (#412)
- looper: Add
remove_fd()
to unregister events/callbacks for a file descriptor. (#416) - Breaking: Use
BorrowedFd
andOwnedFd
to clarify possible ownership transitions. (#417) - Breaking: Upgrade to
ndk-sys 0.5.0
. (#420)
ndk-sys v0.4.1
- Re-release of
0.4.0
to combat a faulty0.4.0+25.0.8775105
publish. Now also includes+23.1.7779620
version metadata.
ndk-build v0.8.0
- Breaking: Postpone APK library packaging until before zip alignment, to deduplicate possibly overlapping entries. (#333)
- Add
adb
device serial parameter todetect_abi()
andApk::{install,start}()
. (#329) - Fix missing
.exe
extension foradb
on Windows insidedetect_abi()
. (#339) start()
now returns the PID of the started app process (useful for passing toadb logcat --pid
). (#331)- Inherit
ndk_gdb()
function fromcargo-apk
with the appropriate script extension across platforms. (#330, #258) - Provide
adb
path tondk-gdb
, allowing it to run withoutadb
inPATH
. (#343) - Remove quotes from
Android.mk
to fixndk-gdb
on Windows. (#344) - Launch Android activity through
ndk-gdb
to block app start until the debugger is attached. (#345) - Consider
ANDROID_SDK_ROOT
as deprecated instead ofANDROID_HOME
. (#346) - Breaking: Rename
fn android_dir()
tofn android_user_home()
and seed withANDROID_SDK_HOME
orANDROID_USER_HOME
. (#347)
cargo-apk v0.9.4
- Upgrade to latest
ndk-build
to deduplicate libraries before packaging them into the APK. (#333) - Support
android:resizeableActivity
. (#338) - Add
--device
argument to selectadb
device by serial (seeadb devices
for connected devices and their serial). (#329) - Print and follow
adb logcat
output after starting app. (#332)