From cb91760468b613f462744f5d9fbaf3e69988bf3a Mon Sep 17 00:00:00 2001 From: Nolan Darilek Date: Mon, 28 Dec 2020 05:39:20 -0600 Subject: [PATCH] Set Android API versions, and add Makefile.toml convenience script for getting Android logs. --- Cargo.toml | 4 ++++ Makefile.toml | 3 +++ 2 files changed, 7 insertions(+) create mode 100644 Makefile.toml diff --git a/Cargo.toml b/Cargo.toml index 7682ed5..f1ec87f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -44,6 +44,10 @@ web-sys = { version = "0.3", features = ["EventTarget", "SpeechSynthesis", "Spee jni = "0.18" ndk-glue = "0.2" +[package.metadata.android] +target_sdk_version = 29 +min_sdk_version = 21 + [[example]] name = "hello_world_android" crate-type = ["cdylib"] diff --git a/Makefile.toml b/Makefile.toml new file mode 100644 index 0000000..7673a80 --- /dev/null +++ b/Makefile.toml @@ -0,0 +1,3 @@ +[tasks.log-android] +command = "adb" +args = ["logcat", "RustStdoutStderr:D", "*:S"] \ No newline at end of file