6.7 KiB
6.7 KiB
Unreleased
0.8.0 (2023-10-15)
- 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)
0.7.0 (2022-07-24)
- 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) - Bump optional
jni
dependency for doctest example 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)
0.6.0 (2022-01-05)
- Breaking: Upgrade to
ndk-sys 0.3.0
and migrate tojni-sys
types that it now directly uses in its bindings. (#209 / #214)
0.5.0 (2021-11-22)
- Breaking: Replace
add_fd_with_callback
ident
with constant valueALOOPER_POLL_CALLBACK
, as per https://developer.android.com/ndk/reference/group/looper#alooper_addfd. - Breaking: Accept unboxed closure in
add_fd_with_callback
. - aaudio: Replace "Added in" comments with missing
#[cfg(feature)]
. - aaudio: Add missing
fn get_allowed_capture_policy()
. - configuration: Add missing
api-level-30
feature tofn screen_round()
.
0.4.0 (2021-08-02)
- Breaking: Model looper file descriptor events integer as
bitflags
.
0.3.0 (2021-01-30)
- Breaking: Looper
ident
not passed indata
pointer anymore.attach_looper
now only sets theident
field when attaching anInputQueue
to aForeignLooper
. If you are relying onPoll::Event::data
to tell event fd and input queue apart, please usePoll::Event::ident
and the new constants introduced inndk-glue
!
0.2.1 (2020-10-15)
- Fix documentation build on docs.rs
0.2.0 (2020-09-15)
- Breaking: Updated to use ndk-sys 0.2.0
- Added
media
bindings - Added
bitmap
andhardware_buffer
bindings - Added
aaudio
bindings - Fixed assets directory path to be relative to the manifest
- Added
trace
feature for native tracing
0.1.0 (2020-04-22)
- Initial release! 🎉