Skip to content

Commit 967882f

Browse files
authored
Merge pull request #149 from rust-mobile/release-0.5.1
Release 0.5.1
2 parents 9fce890 + 35e080b commit 967882f

File tree

2 files changed

+29
-4
lines changed

2 files changed

+29
-4
lines changed

android-activity/CHANGELOG.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,34 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
66

77
## [Unreleased]
88

9+
## [0.5.1] - 2023-12-20
10+
11+
### Changed
12+
- 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))
13+
14+
**Note:** Technically, this could be observed as a breaking change in case you
15+
were depending on the `rwh_06` feature that was enabled by default in the
16+
`ndk` crate. This could be observed via the `NativeWindow` type (exposed via
17+
`AndroidApp::native_window()`) no longer implementing `rwh_06::HasWindowHandle`.
18+
19+
In the unlikely case that you were depending on the `ndk`'s `rwh_06` API
20+
being enabled by default via `android-activity`'s `ndk` dependency, your crate
21+
should explicitly enable the `rwh_06` feature for the `ndk` crate.
22+
23+
As far as could be seen though, it's not expected that anything was
24+
depending on this (e.g. anything based on Winit enables the `ndk` feature
25+
based on an equivalent `winit` feature).
26+
27+
The benefit of the change is that it can help avoid a redundant
28+
`raw-window-handle 0.6` dependency in projects that still need to use older
29+
(non-default) `raw-window-handle` versions. (Though note that this may be
30+
awkward to achieve in practice since other crates that depend on the `ndk`
31+
are still likely to use default features and also pull in
32+
`raw-window-handles 0.6`)
33+
34+
- 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))
35+
- Improved IO error handling in `stdio-to-logcat` IO loop. ([#133](https://github.com/rust-mobile/android-activity/pull/133))
36+
937
## [0.5.0] - 2023-10-16
1038
### Added
1139
- Added `MotionEvent::action_button()` exposing the button associated with button press/release actions ()

android-activity/Cargo.toml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "android-activity"
3-
version = "0.5.0"
3+
version = "0.5.1"
44
edition = "2021"
55
keywords = ["android", "ndk"]
66
readme = "../README.md"
@@ -54,6 +54,3 @@ targets = [
5454
]
5555

5656
rustdoc-args = ["--cfg", "docsrs"]
57-
58-
[dev-dependencies]
59-
ndk = "0.8.0"

0 commit comments

Comments
 (0)