From f93f2c158bf527ed56ab2b6f5272214f0c1d9f7d Mon Sep 17 00:00:00 2001 From: David Ackerman Date: Tue, 1 Feb 2022 05:14:36 +0600 Subject: [PATCH] Bump versions of ndk to 0.6, ndk-sys to 0.3, ndk-glue to 0.6 (#2163) --- CHANGELOG.md | 1 + Cargo.toml | 6 +++--- README.md | 1 + 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6eda1238..34824dcf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ And please only add new entries to the top of this list, right below the `# Unre # Unreleased +- **Breaking:** Bump `ndk` version to 0.6, ndk-sys to `v0.3`, `ndk-glue` to `0.6`. - Remove no longer needed `WINIT_LINK_COLORSYNC` environment variable. - **Breaking:** Rename the `Exit` variant of `ControlFlow` to `ExitWithCode`, which holds a value to control the exit code after running. Add an `Exit` constant which aliases to `ExitWithCode(0)` instead to avoid major breakage. This shouldn't affect most existing programs. diff --git a/Cargo.toml b/Cargo.toml index d1c9a1c8..c9f8eba5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -36,9 +36,9 @@ image = "0.23.12" simple_logger = "1.9" [target.'cfg(target_os = "android")'.dependencies] -ndk = "0.5" -ndk-sys = "0.2.0" -ndk-glue = "0.5" +ndk = "0.6" +ndk-sys = "0.3" +ndk-glue = "0.6" [target.'cfg(any(target_os = "ios", target_os = "macos"))'.dependencies] objc = "0.2.7" diff --git a/README.md b/README.md index 761d0b12..9e8acede 100644 --- a/README.md +++ b/README.md @@ -100,6 +100,7 @@ The `ndk_glue` version needs to match the version used by `winit`. Otherwise, th | 0.24 | `ndk_glue = "0.2.0"` | | 0.25 | `ndk_glue = "0.3.0"` | | 0.26 | `ndk_glue = "0.5.0"` | +| 0.27 | `ndk_glue = "0.6.0"` | Running on an Android device needs a dynamic system library, add this to Cargo.toml: