Skip to content

Commit

Permalink
Merge pull request #149 from rust-mobile/release-0.5.1
Browse files Browse the repository at this point in the history
Release 0.5.1
  • Loading branch information
rib authored Dec 20, 2023
2 parents 9fce890 + 35e080b commit 967882f
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 4 deletions.
28 changes: 28 additions & 0 deletions android-activity/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,34 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [0.5.1] - 2023-12-20

### Changed
- Avoids depending on default features for `ndk` crate to avoid pulling in any `raw-window-handle` dependencies ([#142](https://github.com/rust-mobile/android-activity/pull/142))

**Note:** Technically, this could be observed as a breaking change in case you
were depending on the `rwh_06` feature that was enabled by default in the
`ndk` crate. This could be observed via the `NativeWindow` type (exposed via
`AndroidApp::native_window()`) no longer implementing `rwh_06::HasWindowHandle`.

In the unlikely case that you were depending on the `ndk`'s `rwh_06` API
being enabled by default via `android-activity`'s `ndk` dependency, your crate
should explicitly enable the `rwh_06` feature for the `ndk` crate.

As far as could be seen though, it's not expected that anything was
depending on this (e.g. anything based on Winit enables the `ndk` feature
based on an equivalent `winit` feature).

The benefit of the change is that it can help avoid a redundant
`raw-window-handle 0.6` dependency in projects that still need to use older
(non-default) `raw-window-handle` versions. (Though note that this may be
awkward to achieve in practice since other crates that depend on the `ndk`
are still likely to use default features and also pull in
`raw-window-handles 0.6`)

- The IO thread now gets named `stdio-to-logcat` and main thread is named `android_main` ([#145](https://github.com/rust-mobile/android-activity/pull/145))
- Improved IO error handling in `stdio-to-logcat` IO loop. ([#133](https://github.com/rust-mobile/android-activity/pull/133))

## [0.5.0] - 2023-10-16
### Added
- Added `MotionEvent::action_button()` exposing the button associated with button press/release actions ()
Expand Down
5 changes: 1 addition & 4 deletions android-activity/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "android-activity"
version = "0.5.0"
version = "0.5.1"
edition = "2021"
keywords = ["android", "ndk"]
readme = "../README.md"
Expand Down Expand Up @@ -54,6 +54,3 @@ targets = [
]

rustdoc-args = ["--cfg", "docsrs"]

[dev-dependencies]
ndk = "0.8.0"

0 comments on commit 967882f

Please sign in to comment.