diff --git a/.changes/config.json b/.changes/config.json index 81a6f4ab..844eaa99 100644 --- a/.changes/config.json +++ b/.changes/config.json @@ -68,6 +68,7 @@ "os", "process", "shell", + "store", "updater" ] }, @@ -90,6 +91,7 @@ "os-js", "process-js", "shell-js", + "store-js", "updater-js" ], "postversion": "pnpm install --no-frozen-lockfile" diff --git a/.changes/dialog-file-response-non-exhaustive.md b/.changes/dialog-file-response-non-exhaustive.md new file mode 100644 index 00000000..f8d45d80 --- /dev/null +++ b/.changes/dialog-file-response-non-exhaustive.md @@ -0,0 +1,5 @@ +--- +"dialog": "patch" +--- + +Mark `FileResponse` as `non_exhaustive`. diff --git a/.changes/dialog-return-path.md b/.changes/dialog-return-path.md new file mode 100644 index 00000000..2bd7b4db --- /dev/null +++ b/.changes/dialog-return-path.md @@ -0,0 +1,7 @@ +--- +"dialog": patch +"dialog-js": patch +--- + +The `open` function now returns a string representing either the file path or URI instead of an object. +To read the file data, use the `fs` APIs. diff --git a/.changes/fs-scope-recursive-allow-read-dir.md b/.changes/fs-scope-recursive-allow-read-dir.md new file mode 100644 index 00000000..5fdd210a --- /dev/null +++ b/.changes/fs-scope-recursive-allow-read-dir.md @@ -0,0 +1,5 @@ +--- +"fs": patch:enhance +--- + +The `scope-*-recursive` permissions now also allow reading the contents of the directory. diff --git a/.changes/global-shortcut-0.6.md b/.changes/global-shortcut-0.6.md new file mode 100644 index 00000000..c65d9e1a --- /dev/null +++ b/.changes/global-shortcut-0.6.md @@ -0,0 +1,5 @@ +--- +"global-shortcut": "patch" +--- + +Updated `global-hotkey` crate dependency to `0.6` diff --git a/.changes/pre.json b/.changes/pre.json index d9dd082a..24bbb4db 100644 --- a/.changes/pre.json +++ b/.changes/pre.json @@ -11,6 +11,7 @@ ".changes/remove-target-sdk.md", ".changes/shell-open-regex-match-string.md", ".changes/shell-regex-match-string.md", + ".changes/swift-build-older-versions.md", ".changes/update-fs-api-docs.md", ".changes/update-tauri-rc-3.md" ] diff --git a/.changes/resolve-content-uris.md b/.changes/resolve-content-uris.md new file mode 100644 index 00000000..781eff70 --- /dev/null +++ b/.changes/resolve-content-uris.md @@ -0,0 +1,5 @@ +--- +"fs": patch:feat +--- + +Resolve `content://` path URIs on Android. diff --git a/.changes/single-instance-windows-sys.0.59.md b/.changes/single-instance-windows-sys.0.59.md new file mode 100644 index 00000000..7f7af001 --- /dev/null +++ b/.changes/single-instance-windows-sys.0.59.md @@ -0,0 +1,5 @@ +--- +"single-instance": "patch" +--- + +Updated `windows-sys` crate to `0.59` diff --git a/.changes/store-remove-mobile-plugin.md b/.changes/store-remove-mobile-plugin.md new file mode 100644 index 00000000..64baadec --- /dev/null +++ b/.changes/store-remove-mobile-plugin.md @@ -0,0 +1,5 @@ +--- +"store": patch:breaking +--- + +Implement mobile support in Rust directly. This changes the store directories, invalidating all previously generated stores. diff --git a/.changes/swift-build-older-versions.md b/.changes/swift-build-older-versions.md new file mode 100644 index 00000000..41666a91 --- /dev/null +++ b/.changes/swift-build-older-versions.md @@ -0,0 +1,15 @@ +--- +"barcode-scanner": patch +"biometric": patch +"clipboard-manager": patch +"dialog": patch +"geolocation": patch +"haptics": patch +"log-plugin": patch +"nfc": patch +"notification": patch +"shell": patch +"store": patch +--- + +Explicitly set a minimum macOS version for the Swift package. diff --git a/Cargo.lock b/Cargo.lock index fdcb35b7..99c7da52 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -206,7 +206,7 @@ checksum = "b3d1d046238990b9cf5bcde22a3fb3584ee5cf65fb2765f454ed428c7a0063da" [[package]] name = "api" -version = "2.0.0-rc.0" +version = "2.0.0-rc.1" dependencies = [ "log", "serde", @@ -227,6 +227,7 @@ dependencies = [ "tauri-plugin-os", "tauri-plugin-process", "tauri-plugin-shell", + "tauri-plugin-store", "tauri-plugin-updater", "tiny_http", "window-shadows", @@ -2565,19 +2566,19 @@ checksum = "d2fabcfbdc87f4758337ca535fb41a6d701b65693ce38287d856d1674551ec9b" [[package]] name = "global-hotkey" -version = "0.5.5" +version = "0.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b436093d1598b05e3b7fddc097b2bad32763f53a1beb25ab6f9718c6a60acd09" +checksum = "298a7667d6011efe6b35673c6b29001b88677ae1b3d6b2feccfbff4b44892866" dependencies = [ "bitflags 2.6.0", - "cocoa 0.25.0", + "cocoa 0.26.0", "crossbeam-channel", "keyboard-types", "objc", "once_cell", "serde", "thiserror", - "windows-sys 0.52.0", + "windows-sys 0.59.0", "x11-dl", ] @@ -2865,13 +2866,13 @@ dependencies = [ "http", "hyper", "hyper-util", - "rustls 0.23.12", + "rustls", "rustls-native-certs", "rustls-pki-types", "tokio", "tokio-rustls", "tower-service", - "webpki-roots 0.26.3", + "webpki-roots", ] [[package]] @@ -3440,9 +3441,9 @@ dependencies = [ [[package]] name = "libsqlite3-sys" -version = "0.28.0" +version = "0.30.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0c10584274047cb335c23d3e61bcef8e323adae7c5c8c760540f73610177fc3f" +checksum = "2e99fb7a497b1e3339bc746195567ed8d3e24945ecd636e3619d20b9de9e9149" dependencies = [ "cc", "pkg-config", @@ -4713,7 +4714,7 @@ dependencies = [ "quinn-proto", "quinn-udp", "rustc-hash", - "rustls 0.23.12", + "rustls", "socket2", "thiserror", "tokio", @@ -4730,7 +4731,7 @@ dependencies = [ "rand 0.8.5", "ring", "rustc-hash", - "rustls 0.23.12", + "rustls", "slab", "thiserror", "tinyvec", @@ -5004,9 +5005,9 @@ dependencies = [ "percent-encoding", "pin-project-lite", "quinn", - "rustls 0.23.12", + "rustls", "rustls-native-certs", - "rustls-pemfile 2.1.3", + "rustls-pemfile", "rustls-pki-types", "serde", "serde_json", @@ -5024,7 +5025,7 @@ dependencies = [ "wasm-bindgen-futures", "wasm-streams", "web-sys", - "webpki-roots 0.26.3", + "webpki-roots", "winreg 0.52.0", ] @@ -5222,17 +5223,6 @@ dependencies = [ "windows-sys 0.52.0", ] -[[package]] -name = "rustls" -version = "0.21.12" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3f56a14d1f48b391359b22f731fd4bd7e43c97f3c50eee276f3aa09c94784d3e" -dependencies = [ - "ring", - "rustls-webpki 0.101.7", - "sct", -] - [[package]] name = "rustls" version = "0.23.12" @@ -5242,7 +5232,7 @@ dependencies = [ "once_cell", "ring", "rustls-pki-types", - "rustls-webpki 0.102.6", + "rustls-webpki", "subtle", "zeroize", ] @@ -5254,21 +5244,12 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a88d6d420651b496bdd98684116959239430022a115c1240e6c3993be0b15fba" dependencies = [ "openssl-probe", - "rustls-pemfile 2.1.3", + "rustls-pemfile", "rustls-pki-types", "schannel", "security-framework", ] -[[package]] -name = "rustls-pemfile" -version = "1.0.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1c74cae0a4cf6ccbbf5f359f08efdf8ee7e1dc532573bf0db71968cb56b1448c" -dependencies = [ - "base64 0.21.7", -] - [[package]] name = "rustls-pemfile" version = "2.1.3" @@ -5285,16 +5266,6 @@ version = "1.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fc0a2ce646f8655401bb81e7927b812614bd5d91dbc968696be50603510fcaf0" -[[package]] -name = "rustls-webpki" -version = "0.101.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8b6275d1ee7a1cd780b64aca7726599a1dbc893b1e64144529e55c3c2f745765" -dependencies = [ - "ring", - "untrusted", -] - [[package]] name = "rustls-webpki" version = "0.102.6" @@ -5406,16 +5377,6 @@ dependencies = [ "sha2", ] -[[package]] -name = "sct" -version = "0.7.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "da046153aa2352493d6cb7da4b6e5c0c057d8a1d0a9aa8560baffdd945acd414" -dependencies = [ - "ring", - "untrusted", -] - [[package]] name = "seahash" version = "4.1.0" @@ -5863,9 +5824,9 @@ dependencies = [ [[package]] name = "sqlx" -version = "0.8.0" +version = "0.8.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "27144619c6e5802f1380337a209d2ac1c431002dd74c6e60aebff3c506dc4f0c" +checksum = "fcfa89bea9500db4a0d038513d7a060566bfc51d46d1c014847049a45cce85e8" dependencies = [ "sqlx-core", "sqlx-macros", @@ -5876,9 +5837,9 @@ dependencies = [ [[package]] name = "sqlx-core" -version = "0.8.0" +version = "0.8.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a999083c1af5b5d6c071d34a708a19ba3e02106ad82ef7bbd69f5e48266b613b" +checksum = "d06e2f2bd861719b1f3f0c7dbe1d80c30bf59e76cf019f07d9014ed7eefb8e08" dependencies = [ "atoi", "byteorder", @@ -5901,8 +5862,8 @@ dependencies = [ "once_cell", "paste", "percent-encoding", - "rustls 0.21.12", - "rustls-pemfile 1.0.4", + "rustls", + "rustls-pemfile", "serde", "serde_json", "sha2", @@ -5914,14 +5875,14 @@ dependencies = [ "tokio-stream", "tracing", "url", - "webpki-roots 0.25.4", + "webpki-roots", ] [[package]] name = "sqlx-macros" -version = "0.8.0" +version = "0.8.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a23217eb7d86c584b8cbe0337b9eacf12ab76fe7673c513141ec42565698bb88" +checksum = "2f998a9defdbd48ed005a89362bd40dd2117502f15294f61c8d47034107dbbdc" dependencies = [ "proc-macro2", "quote", @@ -5932,9 +5893,9 @@ dependencies = [ [[package]] name = "sqlx-macros-core" -version = "0.8.0" +version = "0.8.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1a099220ae541c5db479c6424bdf1b200987934033c2584f79a0e1693601e776" +checksum = "3d100558134176a2629d46cec0c8891ba0be8910f7896abfdb75ef4ab6f4e7ce" dependencies = [ "dotenvy", "either", @@ -5958,9 +5919,9 @@ dependencies = [ [[package]] name = "sqlx-mysql" -version = "0.8.0" +version = "0.8.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5afe4c38a9b417b6a9a5eeffe7235d0a106716495536e7727d1c7f4b1ff3eba6" +checksum = "936cac0ab331b14cb3921c62156d913e4c15b74fb6ec0f3146bd4ef6e4fb3c12" dependencies = [ "atoi", "base64 0.22.1", @@ -6001,9 +5962,9 @@ dependencies = [ [[package]] name = "sqlx-postgres" -version = "0.8.0" +version = "0.8.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b1dbb157e65f10dbe01f729339c06d239120221c9ad9fa0ba8408c4cc18ecf21" +checksum = "9734dbce698c67ecf67c442f768a5e90a49b2a4d61a9f1d59f73874bd4cf0710" dependencies = [ "atoi", "base64 0.22.1", @@ -6040,9 +6001,9 @@ dependencies = [ [[package]] name = "sqlx-sqlite" -version = "0.8.0" +version = "0.8.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9b2cdd83c008a622d94499c0006d8ee5f821f36c89b7d625c900e5dc30b5c5ee" +checksum = "a75b419c3c1b1697833dd927bdc4c6545a620bc1bbafabd44e1efbe9afcd337e" dependencies = [ "atoi", "flume", @@ -6359,9 +6320,9 @@ checksum = "61c41af27dd6d1e27b1b16b489db798443478cef1f06a660c96db617ba5de3b1" [[package]] name = "tauri" -version = "2.0.0-rc.3" +version = "2.0.0-rc.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "79776954e2cd6b6c3b56e2cd99905a3a166017495a39ac8eb4c85dd8ea8704b4" +checksum = "7d386b956b09cf88301912453829269f3914b3c813020d429ed8110c75e9dded" dependencies = [ "anyhow", "bytes", @@ -6412,9 +6373,9 @@ dependencies = [ [[package]] name = "tauri-build" -version = "2.0.0-rc.3" +version = "2.0.0-rc.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1fc103bde77870e08d5fc8765615b9615997827550b626fbc4ebbd7a1fbfe2a2" +checksum = "1e79aafbbfc8262d7937675cb44c397e975ab8e0cd722db1c37de694fd443570" dependencies = [ "anyhow", "cargo_toml", @@ -6436,9 +6397,9 @@ dependencies = [ [[package]] name = "tauri-codegen" -version = "2.0.0-rc.3" +version = "2.0.0-rc.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ea061e6be9b37ab455eadc189f45617deafc85c94f78f9cd584862a6deaa83d1" +checksum = "5ce4e521130c5d7b377ddfdc43310ece626b67ec07ae74174407ad7e6cd17d20" dependencies = [ "base64 0.22.1", "brotli", @@ -6463,9 +6424,9 @@ dependencies = [ [[package]] name = "tauri-macros" -version = "2.0.0-rc.3" +version = "2.0.0-rc.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9e20d6f6f96f55a43339c465b3c8205d71940372d54d7c665c5329e8e4ba35d0" +checksum = "a5995206394cd30411fc5c8ae195e498357f63e11ed960ea32b53512dcb2a5a5" dependencies = [ "heck 0.5.0", "proc-macro2", @@ -6477,9 +6438,9 @@ dependencies = [ [[package]] name = "tauri-plugin" -version = "2.0.0-rc.3" +version = "2.0.0-rc.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ec01af01098a286d3e430c1fa947bfd77bc8011ecb209438af4444b02d82b29e" +checksum = "0ebbdbf4e6d7328e0c0f2427b4f56d792ee1ae84ab4fb0286b81a2e408836046" dependencies = [ "anyhow", "glob", @@ -6530,7 +6491,7 @@ dependencies = [ [[package]] name = "tauri-plugin-barcode-scanner" -version = "2.0.0-rc.1" +version = "2.0.0-rc.2" dependencies = [ "log", "serde", @@ -6542,7 +6503,7 @@ dependencies = [ [[package]] name = "tauri-plugin-biometric" -version = "2.0.0-rc.1" +version = "2.0.0-rc.2" dependencies = [ "log", "serde", @@ -6568,7 +6529,7 @@ dependencies = [ [[package]] name = "tauri-plugin-clipboard-manager" -version = "2.0.0-rc.1" +version = "2.0.0-rc.2" dependencies = [ "arboard", "image 0.24.9", @@ -6600,7 +6561,7 @@ dependencies = [ [[package]] name = "tauri-plugin-dialog" -version = "2.0.0-rc.1" +version = "2.0.0-rc.2" dependencies = [ "dunce", "log", @@ -6612,6 +6573,7 @@ dependencies = [ "tauri-plugin", "tauri-plugin-fs", "thiserror", + "url", ] [[package]] @@ -6635,7 +6597,7 @@ dependencies = [ [[package]] name = "tauri-plugin-geolocation" -version = "2.0.0-rc.1" +version = "2.0.0-rc.2" dependencies = [ "log", "serde", @@ -6661,7 +6623,7 @@ dependencies = [ [[package]] name = "tauri-plugin-haptics" -version = "2.0.0-rc.1" +version = "2.0.0-rc.2" dependencies = [ "log", "serde", @@ -6707,7 +6669,7 @@ dependencies = [ [[package]] name = "tauri-plugin-log" -version = "2.0.0-rc.0" +version = "2.0.0-rc.1" dependencies = [ "android_logger", "byte-unit", @@ -6727,7 +6689,7 @@ dependencies = [ [[package]] name = "tauri-plugin-nfc" -version = "2.0.0-rc.1" +version = "2.0.0-rc.2" dependencies = [ "log", "serde", @@ -6740,7 +6702,7 @@ dependencies = [ [[package]] name = "tauri-plugin-notification" -version = "2.0.0-rc.1" +version = "2.0.0-rc.2" dependencies = [ "color-backtrace", "ctor", @@ -6813,7 +6775,7 @@ dependencies = [ [[package]] name = "tauri-plugin-shell" -version = "2.0.0-rc.1" +version = "2.0.0-rc.2" dependencies = [ "encoding_rs", "log", @@ -6840,7 +6802,7 @@ dependencies = [ "serde_json", "tauri", "thiserror", - "windows-sys 0.52.0", + "windows-sys 0.59.0", "zbus", ] @@ -6863,7 +6825,7 @@ dependencies = [ [[package]] name = "tauri-plugin-store" -version = "2.0.0-rc.1" +version = "2.0.0-rc.2" dependencies = [ "dunce", "log", @@ -6971,9 +6933,9 @@ dependencies = [ [[package]] name = "tauri-runtime" -version = "2.0.0-rc.3" +version = "2.0.0-rc.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f4e736d3293f8347e5d2c5b250fe0e5b873499f5483578b139445dbbf802e2e5" +checksum = "6e49398fb1d7736e41099aa7efaf45d599e480a36b3e7f88977b547b662d7253" dependencies = [ "dpi", "gtk", @@ -6990,9 +6952,9 @@ dependencies = [ [[package]] name = "tauri-runtime-wry" -version = "2.0.0-rc.3" +version = "2.0.0-rc.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9fead81c1bd0205d5f02580e64f522704618274e784c2d1c127e4ba19acd0b79" +checksum = "8b2ce1dca90243bd4a77a1020847688590e1ded2f6d190d5a96877b0039f0500" dependencies = [ "cocoa 0.26.0", "gtk", @@ -7014,9 +6976,9 @@ dependencies = [ [[package]] name = "tauri-utils" -version = "2.0.0-rc.3" +version = "2.0.0-rc.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "285af18e09665ea15fdda04cb28fb579a4d71b4e1640628489fecca98838ca9a" +checksum = "2d702b62eed4cf89034926cb1834e2d13a7d745ea08a457fd336f94cde48f2fb" dependencies = [ "aes-gcm", "brotli", @@ -7265,7 +7227,7 @@ version = "0.26.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0c7bc40d0e5a97695bb96e27995cd3a08538541b0a846f65bba7a359f36700d4" dependencies = [ - "rustls 0.23.12", + "rustls", "rustls-pki-types", "tokio", ] @@ -7302,14 +7264,14 @@ dependencies = [ "futures-util", "log", "native-tls", - "rustls 0.23.12", + "rustls", "rustls-native-certs", "rustls-pki-types", "tokio", "tokio-native-tls", "tokio-rustls", "tungstenite", - "webpki-roots 0.26.3", + "webpki-roots", ] [[package]] @@ -7520,7 +7482,7 @@ dependencies = [ "log", "native-tls", "rand 0.8.5", - "rustls 0.23.12", + "rustls", "rustls-pki-types", "sha1", "thiserror", @@ -7962,12 +7924,6 @@ dependencies = [ "system-deps", ] -[[package]] -name = "webpki-roots" -version = "0.25.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5f20c57d8d7db6d3b86154206ae5d8fba62dd39573114de97c2cb0578251f8e1" - [[package]] name = "webpki-roots" version = "0.26.3" diff --git a/Cargo.toml b/Cargo.toml index e24823f7..5ba3f825 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -11,10 +11,10 @@ resolver = "2" [workspace.dependencies] serde = { version = "1", features = ["derive"] } log = "0.4" -tauri = { version = "2.0.0-rc.3", default-features = false } -tauri-build = "2.0.0-rc.3" -tauri-plugin = "2.0.0-rc.3" -tauri-utils = "2.0.0-rc.3" +tauri = { version = "2.0.0-rc.5", default-features = false } +tauri-build = "2.0.0-rc.5" +tauri-plugin = "2.0.0-rc.5" +tauri-utils = "2.0.0-rc.5" serde_json = "1" thiserror = "1" url = "2" diff --git a/examples/api/package.json b/examples/api/package.json index 6c4d1d4a..51083ba2 100644 --- a/examples/api/package.json +++ b/examples/api/package.json @@ -23,6 +23,7 @@ "@tauri-apps/plugin-os": "2.0.0-rc.0", "@tauri-apps/plugin-process": "2.0.0-rc.0", "@tauri-apps/plugin-shell": "2.0.0-rc.0", + "@tauri-apps/plugin-store": "2.0.0-rc.0", "@tauri-apps/plugin-updater": "2.0.0-rc.0", "@zerodevx/svelte-json-view": "1.0.9" }, @@ -30,7 +31,7 @@ "@iconify-json/codicon": "^1.1.37", "@iconify-json/ph": "^1.1.8", "@sveltejs/vite-plugin-svelte": "^3.0.1", - "@tauri-apps/cli": "2.0.0-rc.4", + "@tauri-apps/cli": "2.0.0-rc.6", "@unocss/extractor-svelte": "^0.62.0", "svelte": "^4.2.8", "unocss": "^0.62.0", diff --git a/examples/api/src-tauri/CHANGELOG.md b/examples/api/src-tauri/CHANGELOG.md index 994c48cf..e64b6fba 100644 --- a/examples/api/src-tauri/CHANGELOG.md +++ b/examples/api/src-tauri/CHANGELOG.md @@ -1,5 +1,18 @@ # Changelog +## \[2.0.0-rc.1] + +### Dependencies + +- Upgraded to `barcode-scanner@2.0.0-rc.2` +- Upgraded to `biometric@2.0.0-rc.2` +- Upgraded to `clipboard-manager@2.0.0-rc.2` +- Upgraded to `dialog@2.0.0-rc.2` +- Upgraded to `log-plugin@2.0.0-rc.1` +- Upgraded to `nfc@2.0.0-rc.2` +- Upgraded to `notification@2.0.0-rc.2` +- Upgraded to `shell@2.0.0-rc.2` + ## \[2.0.0-rc.0] ### Dependencies diff --git a/examples/api/src-tauri/Cargo.toml b/examples/api/src-tauri/Cargo.toml index 43641127..8a9eaa98 100644 --- a/examples/api/src-tauri/Cargo.toml +++ b/examples/api/src-tauri/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "api" publish = false -version = "2.0.0-rc.0" +version = "2.0.0-rc.1" description = "An example Tauri Application showcasing the api" edition = "2021" rust-version = { workspace = true } @@ -19,21 +19,22 @@ serde_json = { workspace = true } serde = { workspace = true } tiny_http = "0.12" log = { workspace = true } -tauri-plugin-log = { path = "../../../plugins/log", version = "2.0.0-rc.0" } +tauri-plugin-log = { path = "../../../plugins/log", version = "2.0.0-rc.1" } tauri-plugin-fs = { path = "../../../plugins/fs", version = "2.0.0-rc.0", features = [ "watch", ] } -tauri-plugin-clipboard-manager = { path = "../../../plugins/clipboard-manager", version = "2.0.0-rc.1" } -tauri-plugin-dialog = { path = "../../../plugins/dialog", version = "2.0.0-rc.1" } +tauri-plugin-clipboard-manager = { path = "../../../plugins/clipboard-manager", version = "2.0.0-rc.2" } +tauri-plugin-dialog = { path = "../../../plugins/dialog", version = "2.0.0-rc.2" } tauri-plugin-http = { path = "../../../plugins/http", features = [ "multipart", ], version = "2.0.0-rc.0" } -tauri-plugin-notification = { path = "../../../plugins/notification", version = "2.0.0-rc.1", features = [ +tauri-plugin-notification = { path = "../../../plugins/notification", version = "2.0.0-rc.2", features = [ "windows7-compat", ] } tauri-plugin-os = { path = "../../../plugins/os", version = "2.0.0-rc.0" } tauri-plugin-process = { path = "../../../plugins/process", version = "2.0.0-rc.0" } -tauri-plugin-shell = { path = "../../../plugins/shell", version = "2.0.0-rc.1" } +tauri-plugin-shell = { path = "../../../plugins/shell", version = "2.0.0-rc.2" } +tauri-plugin-store = { path = "../../../plugins/store", version = "2.0.0-rc.2" } [dependencies.tauri] workspace = true @@ -54,9 +55,9 @@ tauri-plugin-global-shortcut = { path = "../../../plugins/global-shortcut", vers tauri-plugin-updater = { path = "../../../plugins/updater", version = "2.0.0-rc.1" } [target."cfg(any(target_os = \"android\", target_os = \"ios\"))".dependencies] -tauri-plugin-barcode-scanner = { path = "../../../plugins/barcode-scanner/", version = "2.0.0-rc.1" } -tauri-plugin-nfc = { path = "../../../plugins/nfc", version = "2.0.0-rc.1" } -tauri-plugin-biometric = { path = "../../../plugins/biometric/", version = "2.0.0-rc.1" } +tauri-plugin-barcode-scanner = { path = "../../../plugins/barcode-scanner/", version = "2.0.0-rc.2" } +tauri-plugin-nfc = { path = "../../../plugins/nfc", version = "2.0.0-rc.2" } +tauri-plugin-biometric = { path = "../../../plugins/biometric/", version = "2.0.0-rc.2" } [target."cfg(target_os = \"windows\")".dependencies] window-shadows = "0.2" diff --git a/examples/api/src-tauri/capabilities/base.json b/examples/api/src-tauri/capabilities/base.json index da21da28..b76e898c 100644 --- a/examples/api/src-tauri/capabilities/base.json +++ b/examples/api/src-tauri/capabilities/base.json @@ -61,6 +61,9 @@ "clipboard-manager:allow-write-text", "clipboard-manager:allow-read-image", "clipboard-manager:allow-write-image", + "fs:allow-open", + "fs:allow-write", + "fs:allow-read", "fs:allow-rename", "fs:allow-mkdir", "fs:allow-remove", @@ -75,6 +78,11 @@ } ], "deny": ["$APPDATA/db/*.stronghold"] - } + }, + "store:allow-entries", + "store:allow-get", + "store:allow-set", + "store:allow-save", + "store:allow-load" ] } diff --git a/examples/api/src-tauri/gen/android/.idea/gradle.xml b/examples/api/src-tauri/gen/android/.idea/gradle.xml index 83b872db..120d2e91 100644 --- a/examples/api/src-tauri/gen/android/.idea/gradle.xml +++ b/examples/api/src-tauri/gen/android/.idea/gradle.xml @@ -27,6 +27,7 @@