diff --git a/.changes/mobile-docs.md b/.changes/mobile-docs.md new file mode 100644 index 000000000000..b7656f694f1d --- /dev/null +++ b/.changes/mobile-docs.md @@ -0,0 +1,6 @@ +--- +"tauri": patch:enhance +"tauri-runtime": patch:enhance +--- + +Include mobile on docs.rs targets. diff --git a/core/tauri-runtime/Cargo.toml b/core/tauri-runtime/Cargo.toml index e4ceee1265c9..3a09423e912f 100644 --- a/core/tauri-runtime/Cargo.toml +++ b/core/tauri-runtime/Cargo.toml @@ -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] diff --git a/core/tauri/Cargo.toml b/core/tauri/Cargo.toml index 965a8cb35b28..6f954833ece6 100644 --- a/core/tauri/Cargo.toml +++ b/core/tauri/Cargo.toml @@ -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] diff --git a/core/tauri/src/test/mock_runtime.rs b/core/tauri/src/test/mock_runtime.rs index b466de798ec0..0746fd7ec342 100644 --- a/core/tauri/src/test/mock_runtime.rs +++ b/core/tauri/src/test/mock_runtime.rs @@ -160,9 +160,9 @@ impl RuntimeHandle 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, ) -> std::result::Result, jni::errors::Error> { todo!()