Skip to content

Commit 46dcb94

Browse files
authored
feat(core): include mobile on docs.rs targets (#8006)
1 parent 4caa1cc commit 46dcb94

File tree

4 files changed

+15
-5
lines changed

4 files changed

+15
-5
lines changed

.changes/mobile-docs.md

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"tauri": patch:enhance
3+
"tauri-runtime": patch:enhance
4+
---
5+
6+
Include mobile on docs.rs targets.

core/tauri-runtime/Cargo.toml

+3-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ default-target = "x86_64-unknown-linux-gnu"
1919
targets = [
2020
"x86_64-pc-windows-msvc",
2121
"x86_64-unknown-linux-gnu",
22-
"x86_64-apple-darwin"
22+
"x86_64-apple-darwin",
23+
"x86_64-linux-android",
24+
"x86_64-apple-ios"
2325
]
2426

2527
[dependencies]

core/tauri/Cargo.toml

+3-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@ default-target = "x86_64-unknown-linux-gnu"
3030
targets = [
3131
"x86_64-pc-windows-msvc",
3232
"x86_64-unknown-linux-gnu",
33-
"x86_64-apple-darwin"
33+
"x86_64-apple-darwin",
34+
"x86_64-linux-android",
35+
"x86_64-apple-ios"
3436
]
3537

3638
[package.metadata.cargo-udeps.ignore]

core/tauri/src/test/mock_runtime.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -160,9 +160,9 @@ impl<T: UserEvent> RuntimeHandle<T> for MockRuntimeHandle {
160160

161161
#[cfg(target_os = "android")]
162162
fn find_class<'a>(
163-
&'a self,
164-
env: &'a mut jni::JNIEnv<'a>,
165-
activity: &'a jni::objects::JObject<'a>,
163+
&self,
164+
env: &mut jni::JNIEnv<'a>,
165+
activity: &jni::objects::JObject<'_>,
166166
name: impl Into<String>,
167167
) -> std::result::Result<jni::objects::JClass<'a>, jni::errors::Error> {
168168
todo!()

0 commit comments

Comments
 (0)