Set Android API versions, and add Makefile.toml convenience script for getting Android logs.

This commit is contained in:
Nolan Darilek 2020-12-28 05:39:20 -06:00
parent 187cd71eeb
commit cb91760468
2 changed files with 7 additions and 0 deletions

View File

@ -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"]

3
Makefile.toml Normal file
View File

@ -0,0 +1,3 @@
[tasks.log-android]
command = "adb"
args = ["logcat", "RustStdoutStderr:D", "*:S"]