feat(images): share target working and receiving images!
This commit is contained in:
16
frontend/src-tauri/Cargo.lock
generated
16
frontend/src-tauri/Cargo.lock
generated
@@ -14,9 +14,11 @@ dependencies = [
|
||||
"serde_json",
|
||||
"tauri",
|
||||
"tauri-build",
|
||||
"tauri-plugin-fs",
|
||||
"tauri-plugin-global-shortcut",
|
||||
"tauri-plugin-http",
|
||||
"tauri-plugin-log",
|
||||
"tauri-plugin-sharetarget",
|
||||
"tauri-plugin-store",
|
||||
"tokio",
|
||||
]
|
||||
@@ -4060,6 +4062,20 @@ dependencies = [
|
||||
"time",
|
||||
]
|
||||
|
||||
[[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",
|
||||
"tauri",
|
||||
"tauri-build",
|
||||
"tauri-plugin",
|
||||
"thiserror 1.0.69",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "tauri-plugin-store"
|
||||
version = "2.2.0"
|
||||
|
||||
@@ -28,6 +28,8 @@ tauri-plugin-store = "2.0.0-beta.12"
|
||||
tauri-plugin-http = "2.0.0-beta.12"
|
||||
chrono = "0.4"
|
||||
tauri-plugin-log = "2"
|
||||
tauri-plugin-sharetarget = "0.1.6"
|
||||
tauri-plugin-fs = "2"
|
||||
|
||||
[target."cfg(target_os = \"macos\")".dependencies]
|
||||
cocoa = "0.26"
|
||||
|
||||
@@ -10,19 +10,26 @@
|
||||
"core:window:allow-show",
|
||||
"core:window:allow-set-focus",
|
||||
{
|
||||
"identifier": "http:default",
|
||||
"allow": [
|
||||
{
|
||||
"url": "https://haystack.johncosta.tech"
|
||||
},
|
||||
{
|
||||
"url": "http://localhost:3040"
|
||||
},
|
||||
{
|
||||
"url": "http://192.168.1.199:3040"
|
||||
}
|
||||
]
|
||||
"path": "$APPDATA/databases/*"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"identifier": "http:default",
|
||||
"allow": [
|
||||
{
|
||||
"url": "https://haystack.johncosta.tech"
|
||||
},
|
||||
"log:default"
|
||||
]
|
||||
}
|
||||
{
|
||||
"url": "http://localhost:3040"
|
||||
},
|
||||
{
|
||||
"url": "http://192.168.1.199:3040"
|
||||
}
|
||||
]
|
||||
},
|
||||
"log:default",
|
||||
"fs:default",
|
||||
"fs:default"
|
||||
]
|
||||
}
|
||||
@@ -1,6 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<uses-permission android:name="android.permission.INTERNET" />
|
||||
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
|
||||
|
||||
<!-- AndroidTV support -->
|
||||
<uses-feature android:name="android.software.leanback" android:required="false" />
|
||||
@@ -18,7 +19,10 @@
|
||||
android:exported="true">
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN" />
|
||||
<action android:name="android.intent.action.SEND" />
|
||||
<category android:name="android.intent.category.DEFAULT" />
|
||||
<category android:name="android.intent.category.LAUNCHER" />
|
||||
<data android:mimeType="image/*" />
|
||||
<!-- AndroidTV support -->
|
||||
<category android:name="android.intent.category.LEANBACK_LAUNCHER" />
|
||||
</intent-filter>
|
||||
|
||||
@@ -13,9 +13,11 @@ pub fn run() {
|
||||
let watcher_state = new_shared_watcher_state();
|
||||
|
||||
tauri::Builder::default()
|
||||
.plugin(tauri_plugin_fs::init())
|
||||
.plugin(tauri_plugin_log::Builder::new().build())
|
||||
.plugin(tauri_plugin_store::Builder::new().build())
|
||||
.plugin(tauri_plugin_http::init())
|
||||
.plugin(tauri_plugin_sharetarget::init())
|
||||
// .plugin(tauri_plugin_dialog::init())
|
||||
// .plugin(tauri_plugin_opener::init())
|
||||
.manage(watcher_state)
|
||||
|
||||
Reference in New Issue
Block a user