platform-restrict android code (#591)

* platform-restrict android code

* spelling error
This commit is contained in:
Brendan Allan
2023-03-04 14:36:12 +08:00
committed by GitHub
parent 29a3123df5
commit 885f49619d
2 changed files with 3 additions and 1 deletions

View File

@@ -8,7 +8,7 @@ rust-version = "1.64.0"
# Android can use dynamic linking since all FFI is done via JNI
crate-type = ["cdylib"]
[dependencies]
[target.'cfg(target_os = "android")'.dependencies]
# FFI
jni = "0.19.0"

View File

@@ -1,3 +1,5 @@
#![cfg(target_os = "android")]
use std::panic;
use jni::{