diff --git a/.changes/add-xdg-portal-as-an-optional-feature-for-rfd.md b/.changes/add-xdg-portal-as-an-optional-feature-for-rfd.md new file mode 100644 index 000000000..3b8c5acdf --- /dev/null +++ b/.changes/add-xdg-portal-as-an-optional-feature-for-rfd.md @@ -0,0 +1,6 @@ +--- +"dialog-js": minor:feat +"dialog": minor:feat +--- + +Add `xdg-portal` as an optional feature for `rfd` diff --git a/.changes/allow-log-formatter-per-target.md b/.changes/allow-log-formatter-per-target.md new file mode 100644 index 000000000..f92f4d262 --- /dev/null +++ b/.changes/allow-log-formatter-per-target.md @@ -0,0 +1,6 @@ +--- +"log": "minor" +"log-js": "minor" +--- + +Allow specifying a log formatter per target using the `format` method on `Target`. diff --git a/.changes/deep-link-fix-different-exec.md b/.changes/deep-link-fix-different-exec.md deleted file mode 100644 index 1f5b5cda8..000000000 --- a/.changes/deep-link-fix-different-exec.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"deep-link": patch -"deep-link-js": patch ---- - -Fix Exec= field in desktop handler if executable path changes diff --git a/.changes/dialog-file-picker-mode.md b/.changes/dialog-file-picker-mode.md new file mode 100644 index 000000000..8d9aac539 --- /dev/null +++ b/.changes/dialog-file-picker-mode.md @@ -0,0 +1,6 @@ +--- +"dialog": minor +"dialog-js": minor +--- + +Add `pickerMode` option to file picker (currently only used on iOS) \ No newline at end of file diff --git a/.changes/disable-localhost-plugin-caching.md b/.changes/disable-localhost-plugin-caching.md new file mode 100644 index 000000000..f33a8d1f1 --- /dev/null +++ b/.changes/disable-localhost-plugin-caching.md @@ -0,0 +1,5 @@ +--- +"localhost": patch +--- + +Disable caching on responses. diff --git a/.changes/enhance-fs-error-message.md b/.changes/enhance-fs-error-message.md deleted file mode 100644 index 540e65a50..000000000 --- a/.changes/enhance-fs-error-message.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"fs": patch -"fs-js": patch ---- - -Enhance error messages. diff --git a/.changes/fix-ios-cameraview-not-removed.md b/.changes/fix-ios-cameraview-not-removed.md new file mode 100644 index 000000000..d02440366 --- /dev/null +++ b/.changes/fix-ios-cameraview-not-removed.md @@ -0,0 +1,6 @@ +--- +"barcode-scanner": patch +"barcode-scanner-js": patch +--- + +Fix the `cameraView` is not removed after scanning in iOS. \ No newline at end of file diff --git a/.changes/fix-log-rotation-max-size.md b/.changes/fix-log-rotation-max-size.md new file mode 100644 index 000000000..31c17ce9d --- /dev/null +++ b/.changes/fix-log-rotation-max-size.md @@ -0,0 +1,6 @@ +--- +"log": patch +"log-js": patch +--- + +Fix log file rotation when exceeding `max_file_size`. diff --git a/.changes/geolocation-android-timeout.md b/.changes/geolocation-android-timeout.md deleted file mode 100644 index dc3d952e2..000000000 --- a/.changes/geolocation-android-timeout.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -geolocation: patch -geolocation-js: patch ---- - -On Android, use the `timeout` value for `setMinUpdateIntervalMillis`, `setMaxUpdateDelayMillis` and `setIntervalMillis` instead of just `minUpdateInterval`. diff --git a/.changes/nfc-is-available-fix.md b/.changes/nfc-is-available-fix.md new file mode 100644 index 000000000..8a16504f1 --- /dev/null +++ b/.changes/nfc-is-available-fix.md @@ -0,0 +1,6 @@ +--- +"nfc": "patch" +"nfc-js": "patch" +--- + +Update return value of `isAvailable` to match TypeScript function signature diff --git a/.changes/opener-same-origin-link.md b/.changes/opener-same-origin-link.md deleted file mode 100644 index 5bed71c4a..000000000 --- a/.changes/opener-same-origin-link.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"opener": patch -"opener-js": patch ---- - -Fix opener doesn't open same origin links in the browser diff --git a/.changes/updater-new-bundle-support.md b/.changes/updater-new-bundle-support.md index 99cf2e889..471da921c 100644 --- a/.changes/updater-new-bundle-support.md +++ b/.changes/updater-new-bundle-support.md @@ -3,4 +3,4 @@ "updater-js": minor --- -Updater plugin now supports all bundle types: Deb, Rpm and AppImage for Linux; NSiS, MSI for Windows. +Updater plugin now supports all bundle types: Deb, Rpm and AppImage for Linux; NSiS, MSI for Windows. This was added in https://github.com/tauri-apps/plugins-workspace/pull/2624 diff --git a/.changes/upload-http-method.md b/.changes/upload-http-method.md new file mode 100644 index 000000000..045eb848d --- /dev/null +++ b/.changes/upload-http-method.md @@ -0,0 +1,6 @@ +--- +"upload": minor +"upload-js": minor +--- + +Upload plugin now supports specifying an HTTP method i.e. POST, PUT etc. \ No newline at end of file diff --git a/.github/workflows/covector-version-or-publish.yml b/.github/workflows/covector-version-or-publish.yml index f19605cf2..488f3d365 100644 --- a/.github/workflows/covector-version-or-publish.yml +++ b/.github/workflows/covector-version-or-publish.yml @@ -11,7 +11,7 @@ on: - v2 permissions: - # required for npm provenance + # required for oidc token id-token: write # required to create the GitHub Release contents: write @@ -62,7 +62,6 @@ jobs: id: covector env: CARGO_TARGET_DIR: /mnt/target - NODE_AUTH_TOKEN: ${{ secrets.ORG_NPM_TOKEN }} with: token: ${{ secrets.GITHUB_TOKEN }} command: 'version-or-publish' diff --git a/.github/workflows/lint-rust.yml b/.github/workflows/lint-rust.yml index 510702446..f97bae9ca 100644 --- a/.github/workflows/lint-rust.yml +++ b/.github/workflows/lint-rust.yml @@ -157,4 +157,5 @@ jobs: run: cargo clippy --package ${{ matrix.package }} --all-targets -- -D warnings - name: clippy ${{ matrix.package }} --all-features + if: matrix.package != 'tauri-plugin-dialog' run: cargo clippy --package ${{ matrix.package }} --all-targets --all-features -- -D warnings diff --git a/.github/workflows/test-rust.yml b/.github/workflows/test-rust.yml index 2a5597b27..086839cf8 100644 --- a/.github/workflows/test-rust.yml +++ b/.github/workflows/test-rust.yml @@ -251,9 +251,9 @@ jobs: run: cargo +stable install cross --git https://github.com/cross-rs/cross - name: test ${{ matrix.package }} - if: matrix.package != 'tauri-plugin-http' && matrix.package != 'tauri-plugin-secure-storage' + if: matrix.package != 'tauri-plugin-http' && matrix.package != 'tauri-plugin-secure-storage' && matrix.package != 'tauri-plugin-dialog' run: ${{ matrix.platform.runner }} ${{ matrix.platform.command }} --package ${{ matrix.package }} --target ${{ matrix.platform.target }} --all-targets --all-features - name: test ${{ matrix.package }} - if: matrix.package == 'tauri-plugin-http' + if: ${{ matrix.package == 'tauri-plugin-http' || matrix.package == 'tauri-plugin-dialog' }} run: ${{ matrix.platform.runner }} ${{ matrix.platform.command }} --package ${{ matrix.package }} --target ${{ matrix.platform.target }} --all-targets diff --git a/Cargo.lock b/Cargo.lock index afef03afa..7055e76e0 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -220,7 +220,7 @@ checksum = "e16d2d3311acee920a9eb8d33b8cbc1787ce4a264e85f964c2404b969bdcd487" [[package]] name = "api" -version = "2.0.36" +version = "2.0.38" dependencies = [ "log", "serde", @@ -4652,6 +4652,12 @@ dependencies = [ "windows-sys 0.59.0", ] +[[package]] +name = "pollster" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2f3a9f18d041e6d0e102a0a46750538147e5e8992d3b4873aaafee2520b00ce3" + [[package]] name = "poly1305" version = "0.8.0" @@ -5181,7 +5187,9 @@ dependencies = [ "objc2-app-kit", "objc2-core-foundation", "objc2-foundation 0.3.0", + "pollster", "raw-window-handle", + "urlencoding", "wasm-bindgen", "wasm-bindgen-futures", "web-sys", @@ -6602,7 +6610,7 @@ dependencies = [ [[package]] name = "tauri-plugin-autostart" -version = "2.5.0" +version = "2.5.1" dependencies = [ "auto-launch", "serde", @@ -6614,7 +6622,7 @@ dependencies = [ [[package]] name = "tauri-plugin-barcode-scanner" -version = "2.4.0" +version = "2.4.2" dependencies = [ "log", "serde", @@ -6626,7 +6634,7 @@ dependencies = [ [[package]] name = "tauri-plugin-biometric" -version = "2.3.0" +version = "2.3.2" dependencies = [ "log", "serde", @@ -6639,7 +6647,7 @@ dependencies = [ [[package]] name = "tauri-plugin-cli" -version = "2.4.0" +version = "2.4.1" dependencies = [ "clap", "log", @@ -6652,7 +6660,7 @@ dependencies = [ [[package]] name = "tauri-plugin-clipboard-manager" -version = "2.3.0" +version = "2.3.2" dependencies = [ "arboard", "log", @@ -6665,7 +6673,7 @@ dependencies = [ [[package]] name = "tauri-plugin-deep-link" -version = "2.4.3" +version = "2.4.5" dependencies = [ "dunce", "plist", @@ -6684,7 +6692,7 @@ dependencies = [ [[package]] name = "tauri-plugin-dialog" -version = "2.4.0" +version = "2.4.2" dependencies = [ "log", "raw-window-handle", @@ -6700,7 +6708,7 @@ dependencies = [ [[package]] name = "tauri-plugin-fs" -version = "2.4.2" +version = "2.4.4" dependencies = [ "anyhow", "dunce", @@ -6722,7 +6730,7 @@ dependencies = [ [[package]] name = "tauri-plugin-geolocation" -version = "2.3.0" +version = "2.3.2" dependencies = [ "log", "serde", @@ -6735,7 +6743,7 @@ dependencies = [ [[package]] name = "tauri-plugin-global-shortcut" -version = "2.3.0" +version = "2.3.1" dependencies = [ "global-hotkey", "log", @@ -6748,7 +6756,7 @@ dependencies = [ [[package]] name = "tauri-plugin-haptics" -version = "2.3.0" +version = "2.3.2" dependencies = [ "log", "serde", @@ -6761,7 +6769,7 @@ dependencies = [ [[package]] name = "tauri-plugin-http" -version = "2.5.2" +version = "2.5.4" dependencies = [ "bytes", "cookie_store", @@ -6784,7 +6792,7 @@ dependencies = [ [[package]] name = "tauri-plugin-localhost" -version = "2.3.0" +version = "2.3.1" dependencies = [ "http", "log", @@ -6797,7 +6805,7 @@ dependencies = [ [[package]] name = "tauri-plugin-log" -version = "2.7.0" +version = "2.7.1" dependencies = [ "android_logger", "byte-unit", @@ -6818,7 +6826,7 @@ dependencies = [ [[package]] name = "tauri-plugin-nfc" -version = "2.3.1" +version = "2.3.3" dependencies = [ "log", "serde", @@ -6831,7 +6839,7 @@ dependencies = [ [[package]] name = "tauri-plugin-notification" -version = "2.3.1" +version = "2.3.3" dependencies = [ "color-backtrace", "ctor", @@ -6853,7 +6861,7 @@ dependencies = [ [[package]] name = "tauri-plugin-opener" -version = "2.5.0" +version = "2.5.2" dependencies = [ "dunce", "glob", @@ -6873,7 +6881,7 @@ dependencies = [ [[package]] name = "tauri-plugin-os" -version = "2.3.1" +version = "2.3.2" dependencies = [ "gethostname 1.0.1", "log", @@ -6889,7 +6897,7 @@ dependencies = [ [[package]] name = "tauri-plugin-persisted-scope" -version = "2.3.2" +version = "2.3.4" dependencies = [ "aho-corasick", "bincode", @@ -6903,7 +6911,7 @@ dependencies = [ [[package]] name = "tauri-plugin-positioner" -version = "2.3.0" +version = "2.3.1" dependencies = [ "log", "serde", @@ -6916,7 +6924,7 @@ dependencies = [ [[package]] name = "tauri-plugin-process" -version = "2.3.0" +version = "2.3.1" dependencies = [ "tauri", "tauri-plugin", @@ -6941,7 +6949,7 @@ dependencies = [ [[package]] name = "tauri-plugin-shell" -version = "2.3.1" +version = "2.3.3" dependencies = [ "encoding_rs", "log", @@ -6960,7 +6968,7 @@ dependencies = [ [[package]] name = "tauri-plugin-single-instance" -version = "2.3.4" +version = "2.3.6" dependencies = [ "semver", "serde", @@ -6975,7 +6983,7 @@ dependencies = [ [[package]] name = "tauri-plugin-sql" -version = "2.3.0" +version = "2.3.1" dependencies = [ "futures-core", "indexmap 2.9.0", @@ -6992,7 +7000,7 @@ dependencies = [ [[package]] name = "tauri-plugin-store" -version = "2.4.0" +version = "2.4.1" dependencies = [ "dunce", "serde", @@ -7006,7 +7014,7 @@ dependencies = [ [[package]] name = "tauri-plugin-stronghold" -version = "2.3.0" +version = "2.3.1" dependencies = [ "hex", "iota-crypto", @@ -7057,7 +7065,7 @@ dependencies = [ [[package]] name = "tauri-plugin-upload" -version = "2.3.1" +version = "2.3.2" dependencies = [ "futures-util", "log", @@ -7075,7 +7083,7 @@ dependencies = [ [[package]] name = "tauri-plugin-websocket" -version = "2.4.0" +version = "2.4.1" dependencies = [ "futures-util", "http", @@ -7092,7 +7100,7 @@ dependencies = [ [[package]] name = "tauri-plugin-window-state" -version = "2.4.0" +version = "2.4.1" dependencies = [ "bitflags 2.9.0", "log", @@ -7455,9 +7463,9 @@ dependencies = [ [[package]] name = "tokio-tungstenite" -version = "0.27.0" +version = "0.28.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "489a59b6730eda1b0171fcfda8b121f4bee2b35cba8645ca35c5f7ba3eb736c1" +checksum = "d25a406cddcc431a75d3d9afc6a7c0f7428d4891dd973e4d54c56b46127bf857" dependencies = [ "futures-util", "log", @@ -7700,9 +7708,9 @@ checksum = "e421abadd41a4225275504ea4d6566923418b7f05506fbc9c0fe86ba7396114b" [[package]] name = "tungstenite" -version = "0.27.0" +version = "0.28.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eadc29d668c91fcc564941132e17b28a7ceb2f3ebf0b9dae3e03fd7a6748eb0d" +checksum = "8628dcc84e5a09eb3d8423d6cb682965dea9133204e8fb3efee74c2a0c259442" dependencies = [ "bytes", "data-encoding", @@ -7891,6 +7899,12 @@ dependencies = [ "serde", ] +[[package]] +name = "urlencoding" +version = "2.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "daf8dba3b7eb870caf1ddeed7bc9d2a049f3cfdfae7cb521b087cc33ae4c49da" + [[package]] name = "urlpattern" version = "0.3.0" diff --git a/examples/api/CHANGELOG.md b/examples/api/CHANGELOG.md index cd296557c..0fb05957a 100644 --- a/examples/api/CHANGELOG.md +++ b/examples/api/CHANGELOG.md @@ -1,5 +1,41 @@ # Changelog +## \[2.0.34] + +### Dependencies + +- Upgraded to `barcode-scanner-js@2.4.2` +- Upgraded to `biometric-js@2.3.2` +- Upgraded to `cli-js@2.4.1` +- Upgraded to `clipboard-manager-js@2.3.2` +- Upgraded to `dialog-js@2.4.2` +- Upgraded to `fs-js@2.4.4` +- Upgraded to `global-shortcut-js@2.3.1` +- Upgraded to `http-js@2.5.4` +- Upgraded to `log-js@2.7.1` +- Upgraded to `nfc-js@2.3.3` +- Upgraded to `notification-js@2.3.3` +- Upgraded to `opener-js@2.5.2` +- Upgraded to `os-js@2.3.2` +- Upgraded to `process-js@2.3.1` +- Upgraded to `shell-js@2.3.3` +- Upgraded to `store-js@2.4.1` + +## \[2.0.33] + +### Dependencies + +- Upgraded to `barcode-scanner-js@2.4.1` +- Upgraded to `biometric-js@2.3.1` +- Upgraded to `clipboard-manager-js@2.3.1` +- Upgraded to `dialog-js@2.4.1` +- Upgraded to `fs-js@2.4.3` +- Upgraded to `nfc-js@2.3.2` +- Upgraded to `notification-js@2.3.2` +- Upgraded to `opener-js@2.5.1` +- Upgraded to `shell-js@2.3.2` +- Upgraded to `http-js@2.5.3` + ## \[2.0.32] ### Dependencies diff --git a/examples/api/package.json b/examples/api/package.json index 91763334f..af256e165 100644 --- a/examples/api/package.json +++ b/examples/api/package.json @@ -1,7 +1,7 @@ { "name": "api", "private": true, - "version": "2.0.32", + "version": "2.0.34", "type": "module", "scripts": { "dev": "vite --clearScreen false", @@ -10,25 +10,25 @@ "tauri": "tauri" }, "dependencies": { - "@tauri-apps/api": "2.8.0", - "@tauri-apps/plugin-barcode-scanner": "^2.4.0", - "@tauri-apps/plugin-biometric": "^2.3.0", - "@tauri-apps/plugin-cli": "^2.4.0", - "@tauri-apps/plugin-clipboard-manager": "^2.3.0", - "@tauri-apps/plugin-dialog": "^2.4.0", - "@tauri-apps/plugin-fs": "^2.4.2", + "@tauri-apps/api": "2.9.0", + "@tauri-apps/plugin-barcode-scanner": "^2.4.2", + "@tauri-apps/plugin-biometric": "^2.3.2", + "@tauri-apps/plugin-cli": "^2.4.1", + "@tauri-apps/plugin-clipboard-manager": "^2.3.2", + "@tauri-apps/plugin-dialog": "^2.4.2", + "@tauri-apps/plugin-fs": "^2.4.4", "@tauri-apps/plugin-geolocation": "^2.2.0", - "@tauri-apps/plugin-global-shortcut": "^2.3.0", + "@tauri-apps/plugin-global-shortcut": "^2.3.1", "@tauri-apps/plugin-haptics": "^2.2.0", - "@tauri-apps/plugin-http": "^2.5.2", - "@tauri-apps/plugin-nfc": "^2.3.1", - "@tauri-apps/plugin-notification": "^2.3.1", - "@tauri-apps/plugin-opener": "^2.5.0", - "@tauri-apps/plugin-os": "^2.3.1", - "@tauri-apps/plugin-process": "^2.3.0", + "@tauri-apps/plugin-http": "^2.5.4", + "@tauri-apps/plugin-nfc": "^2.3.3", + "@tauri-apps/plugin-notification": "^2.3.3", + "@tauri-apps/plugin-opener": "^2.5.2", + "@tauri-apps/plugin-os": "^2.3.2", + "@tauri-apps/plugin-process": "^2.3.1", "@tauri-apps/plugin-secure-storage": "file:../../plugins/secure-storage", - "@tauri-apps/plugin-shell": "^2.3.1", - "@tauri-apps/plugin-store": "^2.4.0", + "@tauri-apps/plugin-shell": "^2.3.3", + "@tauri-apps/plugin-store": "^2.4.1", "@tauri-apps/plugin-updater": "^2.9.0", "@tauri-apps/plugin-upload": "^2.3.0", "@zerodevx/svelte-json-view": "1.0.11" @@ -37,7 +37,7 @@ "@iconify-json/codicon": "^1.2.12", "@iconify-json/ph": "^1.2.2", "@sveltejs/vite-plugin-svelte": "^6.0.0", - "@tauri-apps/cli": "2.8.4", + "@tauri-apps/cli": "2.9.4", "@unocss/extractor-svelte": "^66.3.3", "svelte": "^5.20.4", "unocss": "^66.3.3", diff --git a/examples/api/src-tauri/CHANGELOG.md b/examples/api/src-tauri/CHANGELOG.md index 7e4eaae8d..0cc4a7695 100644 --- a/examples/api/src-tauri/CHANGELOG.md +++ b/examples/api/src-tauri/CHANGELOG.md @@ -1,5 +1,45 @@ # Changelog +## \[2.0.38] + +### Dependencies + +- Upgraded to `barcode-scanner@2.4.2` +- Upgraded to `biometric@2.3.2` +- Upgraded to `cli@2.4.1` +- Upgraded to `clipboard-manager@2.3.2` +- Upgraded to `dialog@2.4.2` +- Upgraded to `fs@2.4.4` +- Upgraded to `geolocation@2.3.2` +- Upgraded to `global-shortcut@2.3.1` +- Upgraded to `haptics@2.3.2` +- Upgraded to `http@2.5.4` +- Upgraded to `log@2.7.1` +- Upgraded to `nfc@2.3.3` +- Upgraded to `notification@2.3.3` +- Upgraded to `opener@2.5.2` +- Upgraded to `os@2.3.2` +- Upgraded to `process@2.3.1` +- Upgraded to `shell@2.3.3` +- Upgraded to `store@2.4.1` + +## \[2.0.37] + +### Dependencies + +- Upgraded to `barcode-scanner@2.4.1` +- Upgraded to `biometric@2.3.1` +- Upgraded to `clipboard-manager@2.3.1` +- Upgraded to `dialog@2.4.1` +- Upgraded to `fs@2.4.3` +- Upgraded to `geolocation@2.3.1` +- Upgraded to `haptics@2.3.1` +- Upgraded to `nfc@2.3.2` +- Upgraded to `notification@2.3.2` +- Upgraded to `opener@2.5.1` +- Upgraded to `shell@2.3.2` +- Upgraded to `http@2.5.3` + ## \[2.0.36] ### Dependencies diff --git a/examples/api/src-tauri/Cargo.toml b/examples/api/src-tauri/Cargo.toml index 1134fc410..105e88e1f 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.36" +version = "2.0.38" description = "An example Tauri Application showcasing the api" edition = "2021" rust-version = { workspace = true } @@ -20,25 +20,25 @@ serde = { workspace = true } tiny_http = "0.12" time = "0.3" log = { workspace = true } -tauri-plugin-log = { path = "../../../plugins/log", version = "2.7.0" } -tauri-plugin-fs = { path = "../../../plugins/fs", version = "2.4.2", features = [ +tauri-plugin-log = { path = "../../../plugins/log", version = "2.7.1" } +tauri-plugin-fs = { path = "../../../plugins/fs", version = "2.4.4", features = [ "watch", ] } -tauri-plugin-clipboard-manager = { path = "../../../plugins/clipboard-manager", version = "2.3.0" } -tauri-plugin-dialog = { path = "../../../plugins/dialog", version = "2.4.0" } +tauri-plugin-clipboard-manager = { path = "../../../plugins/clipboard-manager", version = "2.3.2" } +tauri-plugin-dialog = { path = "../../../plugins/dialog", version = "2.4.2" } tauri-plugin-http = { path = "../../../plugins/http", features = [ "multipart", "cookies", -], version = "2.5.2" } -tauri-plugin-notification = { path = "../../../plugins/notification", version = "2.3.1", features = [ +], version = "2.5.4" } +tauri-plugin-notification = { path = "../../../plugins/notification", version = "2.3.3", features = [ "windows7-compat", ] } -tauri-plugin-os = { path = "../../../plugins/os", version = "2.3.1" } -tauri-plugin-process = { path = "../../../plugins/process", version = "2.3.0" } -tauri-plugin-opener = { path = "../../../plugins/opener", version = "2.5.0" } +tauri-plugin-os = { path = "../../../plugins/os", version = "2.3.2" } +tauri-plugin-process = { path = "../../../plugins/process", version = "2.3.1" } +tauri-plugin-opener = { path = "../../../plugins/opener", version = "2.5.2" } tauri-plugin-secure-storage = { path = "../../../plugins/secure-storage" } -tauri-plugin-shell = { path = "../../../plugins/shell", version = "2.3.1" } -tauri-plugin-store = { path = "../../../plugins/store", version = "2.4.0" } +tauri-plugin-shell = { path = "../../../plugins/shell", version = "2.3.3" } +tauri-plugin-store = { path = "../../../plugins/store", version = "2.4.1" } tauri-plugin-upload = { path = "../../../plugins/upload", version = "2.3.0" } [dependencies.tauri] @@ -56,17 +56,17 @@ features = [ ] [target."cfg(any(target_os = \"macos\", windows, target_os = \"linux\", target_os = \"dragonfly\", target_os = \"freebsd\", target_os = \"openbsd\", target_os = \"netbsd\"))".dependencies] -tauri-plugin-cli = { path = "../../../plugins/cli", version = "2.4.0" } -tauri-plugin-global-shortcut = { path = "../../../plugins/global-shortcut", version = "2.3.0" } +tauri-plugin-cli = { path = "../../../plugins/cli", version = "2.4.1" } +tauri-plugin-global-shortcut = { path = "../../../plugins/global-shortcut", version = "2.3.1" } tauri-plugin-updater = { path = "../../../plugins/updater", version = "2.9.0" } tauri-plugin-window-state = { path = "../../../plugins/window-state", version = "2.2.0" } [target."cfg(any(target_os = \"android\", target_os = \"ios\"))".dependencies] -tauri-plugin-barcode-scanner = { path = "../../../plugins/barcode-scanner/", version = "2.4.0" } -tauri-plugin-nfc = { path = "../../../plugins/nfc", version = "2.3.1" } -tauri-plugin-biometric = { path = "../../../plugins/biometric/", version = "2.3.0" } -tauri-plugin-geolocation = { path = "../../../plugins/geolocation/", version = "2.3.0" } -tauri-plugin-haptics = { path = "../../../plugins/haptics/", version = "2.3.0" } +tauri-plugin-barcode-scanner = { path = "../../../plugins/barcode-scanner/", version = "2.4.2" } +tauri-plugin-nfc = { path = "../../../plugins/nfc", version = "2.3.3" } +tauri-plugin-biometric = { path = "../../../plugins/biometric/", version = "2.3.2" } +tauri-plugin-geolocation = { path = "../../../plugins/geolocation/", version = "2.3.2" } +tauri-plugin-haptics = { path = "../../../plugins/haptics/", version = "2.3.2" } [features] prod = ["tauri/custom-protocol"] diff --git a/examples/api/src-tauri/gen/android/app/build.gradle.kts b/examples/api/src-tauri/gen/android/app/build.gradle.kts index f7047ca0a..029d0f492 100644 --- a/examples/api/src-tauri/gen/android/app/build.gradle.kts +++ b/examples/api/src-tauri/gen/android/app/build.gradle.kts @@ -14,13 +14,13 @@ val tauriProperties = Properties().apply { } android { - compileSdk = 34 + compileSdk = 36 namespace = "com.tauri.api" defaultConfig { manifestPlaceholders["usesCleartextTraffic"] = "false" applicationId = "com.tauri.api" minSdk = 24 - targetSdk = 34 + targetSdk = 36 versionCode = tauriProperties.getProperty("tauri.android.versionCode", "1").toInt() versionName = tauriProperties.getProperty("tauri.android.versionName", "1.0") } diff --git a/examples/api/src-tauri/gen/android/build.gradle.kts b/examples/api/src-tauri/gen/android/build.gradle.kts index c5ef452a6..607240bc8 100644 --- a/examples/api/src-tauri/gen/android/build.gradle.kts +++ b/examples/api/src-tauri/gen/android/build.gradle.kts @@ -4,7 +4,7 @@ buildscript { mavenCentral() } dependencies { - classpath("com.android.tools.build:gradle:8.5.1") + classpath("com.android.tools.build:gradle:8.11.0") classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.25") } } diff --git a/examples/api/src-tauri/gen/android/buildSrc/build.gradle.kts b/examples/api/src-tauri/gen/android/buildSrc/build.gradle.kts index 39e90b054..5c55bba71 100644 --- a/examples/api/src-tauri/gen/android/buildSrc/build.gradle.kts +++ b/examples/api/src-tauri/gen/android/buildSrc/build.gradle.kts @@ -18,6 +18,6 @@ repositories { dependencies { compileOnly(gradleApi()) - implementation("com.android.tools.build:gradle:8.5.1") + implementation("com.android.tools.build:gradle:8.11.0") } diff --git a/examples/api/src/views/Dialog.svelte b/examples/api/src/views/Dialog.svelte index 5aadad5a9..3a2c0c15a 100644 --- a/examples/api/src/views/Dialog.svelte +++ b/examples/api/src/views/Dialog.svelte @@ -8,6 +8,7 @@ let filter = null; let multiple = false; let directory = false; + let pickerMode = ""; function arrayBufferToBase64(buffer, callback) { var blob = new Blob([buffer], { @@ -65,6 +66,7 @@ : [], multiple, directory, + pickerMode: pickerMode === "" ? undefined : pickerMode, }) .then(function (res) { if (Array.isArray(res)) { @@ -94,7 +96,7 @@ onMessage(res); } }) - .catch(onMessage(res)); + .catch(onMessage); } }) .catch(onMessage); @@ -112,7 +114,7 @@ }, ] : [], - }) + }) .then(onMessage) .catch(onMessage); } @@ -142,6 +144,16 @@ +
+ + +

@@ -156,4 +168,4 @@ -
\ No newline at end of file + diff --git a/examples/api/src/views/Upload.svelte b/examples/api/src/views/Upload.svelte index 6c1c38520..0eeb13f88 100644 --- a/examples/api/src/views/Upload.svelte +++ b/examples/api/src/views/Upload.svelte @@ -1,5 +1,5 @@