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
This commit is contained in:
Nuno Ribeiro 2021-08-11 23:28:49 +02:00 committed by GitHub
parent f92803d80e
commit 1972eb952d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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. 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: Running on an Android device needs a dynamic system library, add this to Cargo.toml:
```toml ```toml
[[example]] [[example]]
name = "request_redraw_threaded" name = "request_redraw_threaded"