Skip to content

Commit

Permalink
feat(core): include mobile on docs.rs targets (#8006)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasfernog committed Oct 11, 2023
1 parent 4caa1cc commit 46dcb94
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 5 deletions.
6 changes: 6 additions & 0 deletions .changes/mobile-docs.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"tauri": patch:enhance
"tauri-runtime": patch:enhance
---

Include mobile on docs.rs targets.
4 changes: 3 additions & 1 deletion core/tauri-runtime/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
4 changes: 3 additions & 1 deletion core/tauri/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
6 changes: 3 additions & 3 deletions core/tauri/src/test/mock_runtime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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!()
Expand Down

0 comments on commit 46dcb94

Please sign in to comment.