feat(core): include mobile on docs.rs targets (#8006)

This commit is contained in:
Lucas Fernandes Nogueira 2023-10-11 17:16:01 -03:00 committed by GitHub
parent 4caa1cca99
commit 46dcb94110
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 15 additions and 5 deletions

6
.changes/mobile-docs.md Normal file
View File

@ -0,0 +1,6 @@
---
"tauri": patch:enhance
"tauri-runtime": patch:enhance
---
Include mobile on docs.rs targets.

View File

@ -19,7 +19,9 @@ default-target = "x86_64-unknown-linux-gnu"
targets = [
"x86_64-pc-windows-msvc",
"x86_64-unknown-linux-gnu",
"x86_64-apple-darwin"
"x86_64-apple-darwin",
"x86_64-linux-android",
"x86_64-apple-ios"
]
[dependencies]

View File

@ -30,7 +30,9 @@ default-target = "x86_64-unknown-linux-gnu"
targets = [
"x86_64-pc-windows-msvc",
"x86_64-unknown-linux-gnu",
"x86_64-apple-darwin"
"x86_64-apple-darwin",
"x86_64-linux-android",
"x86_64-apple-ios"
]
[package.metadata.cargo-udeps.ignore]

View File

@ -160,9 +160,9 @@ impl<T: UserEvent> RuntimeHandle<T> for MockRuntimeHandle {
#[cfg(target_os = "android")]
fn find_class<'a>(
&'a self,
env: &'a mut jni::JNIEnv<'a>,
activity: &'a jni::objects::JObject<'a>,
&self,
env: &mut jni::JNIEnv<'a>,
activity: &jni::objects::JObject<'_>,
name: impl Into<String>,
) -> std::result::Result<jni::objects::JClass<'a>, jni::errors::Error> {
todo!()