From 6e036c99e44ae043a334e949f4645f5fcf7d2e2a Mon Sep 17 00:00:00 2001 From: Robert Bragg Date: Mon, 16 Oct 2023 20:25:30 +0100 Subject: [PATCH 1/3] Update CHANGELOG --- android-activity/CHANGELOG.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/android-activity/CHANGELOG.md b/android-activity/CHANGELOG.md index 5a636f2..5f54509 100644 --- a/android-activity/CHANGELOG.md +++ b/android-activity/CHANGELOG.md @@ -6,6 +6,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [0.5.0] - 2023-10-16 +### Added +- Added `MotionEvent::action_button()` exposing the button associated with button press/release actions () + +### Changed +- rust-version bumped to 0.68 ([#123](https://github.com/rust-mobile/android-activity/pull/123)) +- *Breaking*: updates to `ndk 0.8` and `ndk-sys 0.5` ([#128](https://github.com/rust-mobile/android-activity/pull/128)) +- The `Pointer` and `PointerIter` types from the `ndk` crate are no longer directly exposed in the public API ([#122](https://github.com/rust-mobile/android-activity/pull/122)) +- All input API enums based on Android SDK enums have been made runtime extensible via hidden `__Unknown(u32)` variants ([#131](https://github.com/rust-mobile/android-activity/pull/131)) + ## [0.5.0-beta.1] - 2023-08-15 ### Changed - Pulled in `ndk-sys 0.5.0-beta.0` and `ndk 0.8.0-beta.0` ([#113](https://github.com/rust-mobile/android-activity/pull/113)) From 6af4d6122791d77d35939dbd140ee5971f0b6673 Mon Sep 17 00:00:00 2001 From: Robert Bragg Date: Mon, 16 Oct 2023 21:26:52 +0100 Subject: [PATCH 2/3] Remove redundant examples/na-mainloop/.idea directory --- examples/na-mainloop/.idea/.gitignore | 3 --- examples/na-mainloop/.idea/compiler.xml | 6 ------ examples/na-mainloop/.idea/gradle.xml | 19 ------------------- examples/na-mainloop/.idea/misc.xml | 18 ------------------ examples/na-mainloop/.idea/vcs.xml | 7 ------- 5 files changed, 53 deletions(-) delete mode 100644 examples/na-mainloop/.idea/.gitignore delete mode 100644 examples/na-mainloop/.idea/compiler.xml delete mode 100644 examples/na-mainloop/.idea/gradle.xml delete mode 100644 examples/na-mainloop/.idea/misc.xml delete mode 100644 examples/na-mainloop/.idea/vcs.xml diff --git a/examples/na-mainloop/.idea/.gitignore b/examples/na-mainloop/.idea/.gitignore deleted file mode 100644 index 26d3352..0000000 --- a/examples/na-mainloop/.idea/.gitignore +++ /dev/null @@ -1,3 +0,0 @@ -# Default ignored files -/shelf/ -/workspace.xml diff --git a/examples/na-mainloop/.idea/compiler.xml b/examples/na-mainloop/.idea/compiler.xml deleted file mode 100644 index fb7f4a8..0000000 --- a/examples/na-mainloop/.idea/compiler.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/examples/na-mainloop/.idea/gradle.xml b/examples/na-mainloop/.idea/gradle.xml deleted file mode 100644 index a2d7c21..0000000 --- a/examples/na-mainloop/.idea/gradle.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/examples/na-mainloop/.idea/misc.xml b/examples/na-mainloop/.idea/misc.xml deleted file mode 100644 index a6198f0..0000000 --- a/examples/na-mainloop/.idea/misc.xml +++ /dev/null @@ -1,18 +0,0 @@ - - - - - - - - - - - \ No newline at end of file diff --git a/examples/na-mainloop/.idea/vcs.xml b/examples/na-mainloop/.idea/vcs.xml deleted file mode 100644 index fdf1fc8..0000000 --- a/examples/na-mainloop/.idea/vcs.xml +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - \ No newline at end of file From a7dc90d9bb049c16365ea5a64ac4c5828497dd3c Mon Sep 17 00:00:00 2001 From: Robert Bragg Date: Mon, 16 Oct 2023 20:26:58 +0100 Subject: [PATCH 3/3] Release 0.5.0 --- android-activity/Cargo.toml | 2 +- examples/agdk-mainloop/Cargo.toml | 4 ++-- examples/na-mainloop/Cargo.toml | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/android-activity/Cargo.toml b/android-activity/Cargo.toml index 8b8aa9b..c6f2584 100644 --- a/android-activity/Cargo.toml +++ b/android-activity/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "android-activity" -version = "0.5.0-beta.1" +version = "0.5.0" edition = "2021" keywords = ["android", "ndk"] readme = "../README.md" diff --git a/examples/agdk-mainloop/Cargo.toml b/examples/agdk-mainloop/Cargo.toml index acb84a9..c003445 100644 --- a/examples/agdk-mainloop/Cargo.toml +++ b/examples/agdk-mainloop/Cargo.toml @@ -9,8 +9,8 @@ edition = "2021" log = "0.4" android_logger = "0.11.0" android-activity = { path="../../android-activity", features = ["game-activity"] } -ndk-sys = "0.5.0-beta.0" -ndk = "0.8.0-beta.0" +ndk-sys = "0.5.0" +ndk = "0.8.0" [lib] name="main" diff --git a/examples/na-mainloop/Cargo.toml b/examples/na-mainloop/Cargo.toml index 2014401..131b865 100644 --- a/examples/na-mainloop/Cargo.toml +++ b/examples/na-mainloop/Cargo.toml @@ -9,8 +9,8 @@ edition = "2021" log = "0.4" android_logger = "0.11.0" android-activity = { path="../../android-activity", features = [ "native-activity" ] } -ndk-sys = "0.5.0-beta.0" -ndk = "0.8.0-beta.0" +ndk-sys = "0.5.0" +ndk = "0.8.0" [lib] #name="na_mainloop"