diff --git a/CHANGELOG.md b/CHANGELOG.md index 9e8a76ef..c8c8c8f6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,8 @@ And please only add new entries to the top of this list, right below the `# Unre # Unreleased +# 0.29.0-beta.1 + - **Breaking:** Bump `ndk` version to `0.8.0-beta.0`, ndk-sys to `v0.5.0-beta.0`, `android-activity` to `0.5.0-beta.1`. - **Breaking:** Bump MSRV from `1.64` to `1.65`. - Make iOS windows usable from other threads. diff --git a/Cargo.toml b/Cargo.toml index 6b2253fa..ea80e0a4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "winit" -version = "0.29.0-beta.0" +version = "0.29.0-beta.1" authors = ["The winit contributors", "Pierre Krieger "] description = "Cross-platform window creation library." edition = "2021" diff --git a/README.md b/README.md index 8400e93a..bfa49dca 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ ```toml [dependencies] -winit = "0.29.0-beta.0" +winit = "0.29.0-beta.1" ``` ## [Documentation](https://docs.rs/winit) @@ -95,7 +95,7 @@ book]. #### Android -The Android backend builds on (and exposes types from) the [`ndk`](https://docs.rs/ndk/0.7.0/ndk/) crate. +The Android backend builds on (and exposes types from) the [`ndk`](https://docs.rs/ndk/latest/ndk/) crate. Native Android applications need some form of "glue" crate that is responsible for defining the main entry point for your Rust application as well as tracking @@ -114,6 +114,7 @@ clash. | winit | ndk-glue | | :---: | :--------------------------: | +| 0.29.0-beta.1 | `android-activity = "0.5.0-beta.1"` | | 0.28 | `android-activity = "0.4"` | | 0.27 | `ndk-glue = "0.7"` | | 0.26 | `ndk-glue = "0.5"` | @@ -150,7 +151,7 @@ class. Your application _must_ specify the base class it needs via a feature fla For example, add this to Cargo.toml: ```toml -winit = { version = "0.28", features = [ "android-native-activity" ] } +winit = { version = "0.29.0-beta.1", features = [ "android-native-activity" ] } [target.'cfg(target_os = "android")'.dependencies] android_logger = "0.11.0" @@ -181,7 +182,7 @@ For more details, refer to these `android-activity` [example applications](https If your application is currently based on `NativeActivity` via the `ndk-glue` crate and building with `cargo apk` then the minimal changes would be: 1. Remove `ndk-glue` from your `Cargo.toml` -2. Enable the `"android-native-activity"` feature for Winit: `winit = { version = "0.28", features = [ "android-native-activity" ] }` +2. Enable the `"android-native-activity"` feature for Winit: `winit = { version = "0.29.0-beta.1", features = [ "android-native-activity" ] }` 3. Add an `android_main` entrypoint (as above), instead of using the '`[ndk_glue::main]` proc macro from `ndk-macros` (optionally add a dependency on `android_logger` and initialize logging as above). 4. Pass a clone of the `AndroidApp` that your application receives to Winit when building your event loop (as shown above).