integrate to android

This commit is contained in:
ssrlive 2023-04-14 18:44:41 +08:00 committed by B. Blechschmidt
parent 62a04229db
commit 7442abece5
4 changed files with 86 additions and 0 deletions

View file

@ -27,6 +27,13 @@ pub enum Error {
#[error("smoltcp::socket::tcp::SendError {0:?}")]
Send(#[from] smoltcp::socket::tcp::SendError),
#[error("std::str::Utf8Error {0:?}")]
Utf8(#[from] std::str::Utf8Error),
#[cfg(target_os = "android")]
#[error("jni::errors::Error {0:?}")]
Jni(#[from] jni::errors::Error),
#[error("&str {0}")]
Str(String),