You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: android-activity/CHANGELOG.md
+27-17Lines changed: 27 additions & 17 deletions
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
6
6
7
7
## [Unreleased]
8
8
9
+
- input: Replaced custom types with their `ndk` crate equivalent.
10
+
> [!NOTE]
11
+
> These types existed because the `ndk` crate didn't provide them in an extensible way. Now that they have the `#[non_exhaustive]` flag and contain a `__Unknown(T)` variant to provide lossless conversions, and not to mention use an ABI type that matches how it is being used by most functions (when the original constants were defined in a "typeless" way), the `ndk` types are used and reexported once again.
12
+
13
+
> [!IMPORTANT]
14
+
> **Relevant breaking changes**:
15
+
> -`repr()` types for some `enum`s have changed to match the ABI type that is used by most functions that are returning or consuming this wrapper type.
16
+
> -`Source::is_xxx_class()` functions are replaced by querying `Source::class()` and comparing against variants from the returned `SourceClass``bitflags` enum.
17
+
> -`SourceFlags::TRACKBALL` (from `Source::is_trackball_class()`) is named `SourceClass::NAVIGATION` in the `ndk`.
18
+
9
19
## [0.6.0] - 2024-04-26
10
20
11
21
### Changed
@@ -25,32 +35,32 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
25
35
### Changed
26
36
- 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))
27
37
28
-
**Note:** Technically, this could be observed as a breaking change in case you
29
-
were depending on the `rwh_06` feature that was enabled by default in the
30
-
`ndk` crate. This could be observed via the `NativeWindow` type (exposed via
31
-
`AndroidApp::native_window()`) no longer implementing `rwh_06::HasWindowHandle`.
38
+
**Note:** Technically, this could be observed as a breaking change in case you
39
+
were depending on the `rwh_06` feature that was enabled by default in the
40
+
`ndk` crate. This could be observed via the `NativeWindow` type (exposed via
41
+
`AndroidApp::native_window()`) no longer implementing `rwh_06::HasWindowHandle`.
32
42
33
-
In the unlikely case that you were depending on the `ndk`'s `rwh_06` API
34
-
being enabled by default via `android-activity`'s `ndk` dependency, your crate
35
-
should explicitly enable the `rwh_06` feature for the `ndk` crate.
43
+
In the unlikely case that you were depending on the `ndk`'s `rwh_06` API
44
+
being enabled by default via `android-activity`'s `ndk` dependency, your crate
45
+
should explicitly enable the `rwh_06` feature for the `ndk` crate.
36
46
37
-
As far as could be seen though, it's not expected that anything was
38
-
depending on this (e.g. anything based on Winit enables the `ndk` feature
39
-
based on an equivalent `winit` feature).
47
+
As far as could be seen though, it's not expected that anything was
48
+
depending on this (e.g. anything based on Winit enables the `ndk` feature
49
+
based on an equivalent `winit` feature).
40
50
41
-
The benefit of the change is that it can help avoid a redundant
42
-
`raw-window-handle 0.6` dependency in projects that still need to use older
43
-
(non-default) `raw-window-handle` versions. (Though note that this may be
44
-
awkward to achieve in practice since other crates that depend on the `ndk`
45
-
are still likely to use default features and also pull in
46
-
`raw-window-handles 0.6`)
51
+
The benefit of the change is that it can help avoid a redundant
52
+
`raw-window-handle 0.6` dependency in projects that still need to use older
53
+
(non-default) `raw-window-handle` versions. (Though note that this may be
54
+
awkward to achieve in practice since other crates that depend on the `ndk`
55
+
are still likely to use default features and also pull in
56
+
`raw-window-handles 0.6`)
47
57
48
58
- 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))
49
59
- Improved IO error handling in `stdio-to-logcat` IO loop. ([#133](https://github.com/rust-mobile/android-activity/pull/133))
50
60
51
61
## [0.5.0] - 2023-10-16
52
62
### Added
53
-
- Added `MotionEvent::action_button()` exposing the button associated with button press/release actions ()
63
+
- Added `MotionEvent::action_button()` exposing the button associated with button press/release actions ([#138](https://github.com/rust-mobile/android-activity/pull/138))
54
64
55
65
### Changed
56
66
- rust-version bumped to 0.68 ([#123](https://github.com/rust-mobile/android-activity/pull/123))
0 commit comments