From 100d5bc1d4ca51e83f9a359092823bb9effbd30a Mon Sep 17 00:00:00 2001 From: Marijn Suijten Date: Sat, 28 Oct 2023 20:23:22 +0200 Subject: [PATCH] README: Update crate version in `Cargo.toml` example --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 7c49732..783bbd8 100644 --- a/README.md +++ b/README.md @@ -36,8 +36,8 @@ Cargo.toml ```toml [dependencies] log = "0.4" -android_logger = "0.11" -android-activity = { version = "0.4", features = [ "native-activity" ] } +android_logger = "0.13" +android-activity = { version = "0.5", features = [ "native-activity" ] } [lib] crate_type = ["cdylib"] @@ -126,8 +126,8 @@ Middleware libraries can instead look at using the [ndk-context](https://crates. The steps to switch a simple standalone application over from `ndk-glue` to `android-activity` (still based on `NativeActivity`) should be: 1. Remove `ndk-glue` from your Cargo.toml -2. Add a dependency on `android-activity`, like `android-activity = { version="0.4", features = [ "native-activity" ] }` -3. Optionally add a dependency on `android_logger = "0.11.0"` +2. Add a dependency on `android-activity`, like `android-activity = { version="0.5", features = [ "native-activity" ] }` +3. Optionally add a dependency on `android_logger = "0.13.0"` 4. Update the `main` entry point to look like this: ```rust