Update Rust crate android-activity to 0.6 #210
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
0.4
->0.6
Release Notes
rust-mobile/android-activity (android-activity)
v0.6.0
Compare Source
What's Changed
ndk-sys 0.6.0
andndk 0.9.0
by @MarijnS95 in https://github.com/rust-mobile/android-activity/pull/155saved_state_in
pointer by @skibon02 in https://github.com/rust-mobile/android-activity/pull/157New Contributors
Full Changelog: rust-mobile/android-activity@v0.5.2...v0.6.0
v0.5.2
: android-activity 0.5.2Compare Source
What's Changed
EVENT_ACTION_MASK
when extracting MotionEvent action by @ArthurCose in https://github.com/rust-mobile/android-activity/pull/147New Contributors
Full Changelog: rust-mobile/android-activity@v0.5.1...v0.5.2
v0.5.1
: android-activity 0.5.1Compare Source
Changed
Avoids depending on default features for
ndk
crate to avoid pulling in anyraw-window-handle
dependencies (#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 thendk
crate. This could be observed via theNativeWindow
type (exposed viaAndroidApp::native_window()
) no longer implementingrwh_06::HasWindowHandle
.In the unlikely case that you were depending on the
ndk
'srwh_06
API being enabled by default viaandroid-activity
'sndk
dependency, your crate should explicitly enable therwh_06
feature for thendk
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 equivalentwinit
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 thendk
are still likely to use default features and also pull inraw-window-handles 0.6
)The IO thread now gets named
stdio-to-logcat
and main thread is namedandroid_main
(#145)Improved IO error handling in
stdio-to-logcat
IO loop. (#133)New Contributors
Full Changelog: rust-mobile/android-activity@v0.5.0...v0.5.1
v0.5.0
: android-activity 0.5.0Compare Source
Probably the most notable (breaking) change in this release is the updated API for reading input events to better support being able to use other
AndroidApp
APIs while iterating input events, to support unicode character mapping forKeycodes
.The other big change with this release is the update of the
game-activity
backend, updating to GameActivity 2.0.2. Applications using thegame-activity
backend will need to ensure they pull in the corresponding 2.0.2.aar
from Google (For example, see https://github.com/rust-mobile/android-activity/blob/main/examples/agdk-mainloop/app/build.gradle)Added
Added
KeyEvent::meta_state()
for being able to query the state of meta keys, needed for character mapping (#102)Added
KeyCharacterMap
JNI bindings to the corresponding Android SDK API (#102)Added
AndroidApp::device_key_character_map()
for being able to get aKeyCharacterMap
for a givendevice_id
for unicode character mapping (#102)Click here for an example of how to handle unicode character mapping:
Added
TextEvent
Input Method event for supporting text editing via virtual keyboards (#24)Added
MotionEvent::action_button()
exposing the button associated with button press/release actions (#138)Changed
rust-version bumped to 0.68 (#123)
Breaking: update to
ndk 0.8
andndk-sys 0.5
(#128)GameActivity updated to 2.0.2 (requires the corresponding 2.0.2
.aar
release from Google) (#88)AndroidApp::input_events()
is replaced byAndroidApp::input_events_iter()
(#102)Click here for an example of how to use `input_events_iter()`:
The
Pointer
andPointerIter
types from thendk
crate are no longer directly exposed in the public API (#122)All input API enums based on Android SDK enums have been made runtime extensible via hidden
__Unknown(u32)
variants (#131)New Contributors
Full Changelog: rust-mobile/android-activity@v0.4.3...v0.5.0
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.