From 1972eb952deef7fa34409e178597eacdb7d02bf3 Mon Sep 17 00:00:00 2001 From: Nuno Ribeiro Date: Wed, 11 Aug 2021 23:28:49 +0200 Subject: [PATCH] Adds Android winit<->ndk_glue version match table (#1993) * Adds Android winit<->ndk_glue version match table * Fixes justification * Adds crosses * Address review and instead of a m:n table it shows a 1:1 version compatibility * Addresses review --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index 717d52e0..074e41ee 100644 --- a/README.md +++ b/README.md @@ -92,7 +92,17 @@ book]. This library makes use of the [ndk-rs](https://github.com/rust-windowing/android-ndk-rs) crates, refer to that repo for more documentation. +The `ndk_glue` version needs to match the version used by `winit`. Otherwise, the application will not start correctly as `ndk_glue`'s internal NativeActivity static is not the same due to version mismatch. + +`ndk_glue` <-> `winit` version comparison compatibility: + +| winit | ndk_glue | +| :---: | :------------------: | +| 0.24 | `ndk_glue = "0.2.0"` | +| 0.25 | `ndk_glue = "0.3.0"` | + Running on an Android device needs a dynamic system library, add this to Cargo.toml: + ```toml [[example]] name = "request_redraw_threaded"