wip: using local package for development

This commit is contained in:
2025-05-01 16:14:20 +01:00
parent 2eda77827a
commit c8d9ae7aff
7 changed files with 18 additions and 9 deletions

View File

@@ -4156,8 +4156,6 @@ dependencies = [
[[package]]
name = "tauri-plugin-sharetarget"
version = "0.1.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "15a6e4638b6a5492a46847fc9e994df8cfd2dbc1bacc11f15c207d6a2163c341"
dependencies = [
"serde",
"serde_json",

View File

@@ -38,5 +38,5 @@ cocoa = "0.26"
[target."cfg(any(target_os = \"macos\", target_os = \"linux\", target_os = \"windows\"))".dependencies]
tauri-plugin-global-shortcut = "2"
[target."cfg(target_os = \"android\")".dependencies]
tauri-plugin-sharetarget = "0.1.6"
[target."cfg(any(target_os = \"android\", target_os = \"ios\"))".dependencies]
tauri-plugin-sharetarget = { path = "../../tauri-plugin-sharetarget"}

View File

@@ -8,6 +8,7 @@ permissions = [
"fs:default",
"http:default",
"os:default",
"sharetarget:default",
{ identifier = "http:default", allow = [
{ url = "https://haystack.johncosta.tech" },
{ url = "http://localhost:3040" },

View File

@@ -57,7 +57,7 @@ pub fn android() {
.plugin(tauri_plugin_fs::init())
.plugin(tauri_plugin_store::Builder::new().build())
.plugin(tauri_plugin_http::init())
//.plugin(tauri_plugin_sharetarget::init())
.plugin(tauri_plugin_sharetarget::init())
.setup(|app| {
log::info!("running things!");
setup_window(app)?;