Commit Graph
2328 Commits
Author SHA1 Message Date
Lorky 52edb98eb0 fix(notification): resolve granted Android permission requests (fix #3757) (#3758) 2026-11-09 09:56:05 +01:00
renovate[bot] 937f03bb57 chore(deps): update dependency tslib to v2.9.1 (#3768)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-11-09 15:22:37 +08:00
hassan 92e47a1c08 fix(log): keep KeepSome cap across same-second rotations (#3718)
* fix(log): count .log.bak in KeepSome cleanup, unique same-second names

Two same-second rotations created a .log.bak file that remove_old_files
never counted (it only matched .log), so KeepSome(n) grew past its cap.
A third rotation in the same second then overwrote that .bak, losing
the lines it held. Pick the first free <name>_<date>_<n>.log on
collision instead of the .bak rename, and count legacy .log.bak files
against the keep cap.

Fixes tauri-apps/plugins-workspace#3709

* fix(log): reuse timestamp for rotation collision names
2026-11-06 11:22:41 +08:00
404HumanandTony 685d3424a9 fix(store): take the resource table and stores locks in one order (#3746)
* fix(store): take the resource table and stores locks in one order

* fix(store): handle a load racing a close and add a regression test

* Add note about the order

* fix(store): lock the resource table and the stores together, table first

* tweak comments

---------

Co-authored-by: Tony <legendmastertony@gmail.com>
2026-11-05 12:56:11 +08:00
Lorky b11126eae6 fix(http): release resources for null-body responses (#3756) 2026-11-05 04:36:52 +02:00
Den Ilin 2fbd563427 feat(http): send fetch request bodies as raw IPC payloads (#3732) 2026-11-04 19:01:53 +02:00
renovate[bot] cd94082746 chore(deps): update dependency @rollup/plugin-typescript to v12.3.1 (#3735)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-11-04 12:55:13 +01:00
renovate[bot] 7ba9be188b chore(deps): update dependency eslint-plugin-security to v4.2.1 (#3767)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-11-04 12:33:22 +01:00
dependabot[bot] 7dcc632874 chore(deps): bump follow-redirects from 1.16.1 to 1.16.2 (#3766)
Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.16.1 to 1.16.2.
- [Release notes](https://github.com/follow-redirects/follow-redirects/releases)
- [Commits](https://github.com/follow-redirects/follow-redirects/compare/v1.16.1...v1.16.2)

---
updated-dependencies:
- dependency-name: follow-redirects
  dependency-version: 1.16.2
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-11-04 09:33:51 +01:00
renovate[bot] 324235c708 chore(deps): update rust crate zip to v9.0.5 [security] (#3765)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-11-04 15:43:15 +08:00
Eric Roberts 74a44c1d56 fix(opener): respect base target when opening links (#3739) 2026-10-28 13:54:12 +03:00
github-actions[bot] 128190689d publish new versions (#3712)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
deep-link-v2.6.3 updater-js-v2.14.1 dialog-v2.8.4 deep-link-js-v2.6.3 single-instance-v2.5.5 updater-v2.14.1 notification-js-v2.8.0 shell-v2.6.0 dialog-js-v2.8.4 shell-js-v2.6.0 notification-v2.8.0
2026-10-27 23:59:38 +01:00
renovate[bot]andTony 52fa7754b9 chore(deps): update rust crate rand to 0.10 (#3738)
* chore(deps): update rust crate rand to 0.10

* change file

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Tony <legendmastertony@gmail.com>
2026-10-27 14:31:24 +08:00
renovate[bot]andTony 1331ca4101 chore(deps): update rust crate rfd to 0.17 (#3737)
* chore(deps): update rust crate rfd to 0.17

* remove removed feature

* add change file

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Tony <legendmastertony@gmail.com>
2026-10-27 14:31:13 +08:00
renovate[bot]andTony 385f60c077 chore(deps): update rust crate base64 to 0.23 (#3515)
* chore(deps): update rust crate base64 to 0.23

* bump tauri

* bump reqwest 0.13

* change file

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Tony <legendmastertony@gmail.com>
2026-10-26 20:42:10 +08:00
renovate[bot] 8e04d3005e chore(deps): update dependency @tauri-apps/cli to v2.12.4 (#3717)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-10-26 16:10:05 +08:00
renovate[bot]andTony 34ed7d3c33 chore(deps): update dependency @rollup/plugin-terser to v1.0.2 (#3733)
* chore(deps): update dependency @rollup/plugin-terser to v1.0.2

* fix audit

* remove unused overrides

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Tony <legendmastertony@gmail.com>
2026-10-26 12:09:24 +08:00
renovate[bot] c75459d899 chore(deps): update dependency rollup to v4.64.12 (#3715)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-10-23 14:18:05 +02:00
Fabian-Lars df594206ce chore(deps): update webpki-roots crates (lockfile-only) (#3723) 2026-10-22 10:01:10 +02:00
Grzegorz KućmierzandLucas Nogueira 11211c30e7 fix(window-state): stop macOS overlay windows changing size on every restore (#3416)
* fix(window-state): convert macOS coordinates to Logical to fix overlay shrink and multi-monitor DPI scaling drift

* chore: add changeset for logical coordinates and macOS overlay fix

* chore(window-state): fix change file package keys

* fix(window-state): save the macOS content rect size instead of guessing the title bar

The 20-40px outer/inner heuristic also matched ordinary decorated windows, saving their outer size so they grew by the title bar height on every restore. Derive the title bar height from the content rect instead, in one helper shared by update_state, the Resized handler and the initial metadata.

* fix(window-state): keep the saved state in physical pixels

State files written by earlier versions hold physical pixels, and logical coordinates are not one global space across monitors with different scale factors, so a position converted with one monitor's scale was restored on another. Converting with the window's scale at Moved time could also pick up a stale scale mid-drag, and an unavailable scale silently stored physical values as logical.

* fix(window-state): check the restored position against the monitors

For a maximized window the monitor check tested x and y, which are the monitor's corner, while the window was then placed at prev_x and prev_y. A window maximized after leaving a now-disconnected monitor passed the check and was restored off-screen.

* test(window-state): cover repeated size and position restores in e2e

Restores each window three times, also with an overlay title bar, and checks the inner and outer size (or position) still match the first save, so drift between saving and restoring accumulates and fails the test.

* chore(window-state): describe the restore fixes in the change file

* chore(deps): update @crabnebula/test-runner-backend to 0.3.1

0.3.0 returns a new-session response that WebdriverIO 10 rejects as not W3C, so every macOS e2e spec failed to create a session.

---------

Co-authored-by: Lucas Nogueira <lucas@tauri.app>
2026-10-17 22:13:18 -03:00
GaëtanandLucas Nogueira f36ba7ba48 feat(notification): add Android chronometer support (#3282)
* feat(notification): add Android chronometer support

* e2e test

---------

Co-authored-by: Lucas Nogueira <lucas@tauri.app>
2026-10-16 16:07:08 -03:00
JGuest121andLucas Nogueira aedd883cf3 fix(single-instance): release the lock on cleanup_before_exit instead of RunEvent::Exit (#3482)
* add configurable destroy_on_exit to single instance plugin

* add change file

* document destroy_on_exit

* move the destroy to rely on the Resource close

* add integration test

* fix android/ios

---------

Co-authored-by: Lucas Nogueira <lucas@tauri.app>
2026-10-16 16:06:24 -03:00
8dc878fe34 fix(deep-link): check update-desktop-database existence before executing (#3383)
On Linux, `update-desktop-database` (from `desktop-file-utils`) may not
be installed, especially on KDE systems. Instead of failing with an IO
error, log a warning when the command is not found and continue.

Non-NotFound errors still propagate as before.

Fixes #2265

Co-authored-by: Matt Van Horn <455140+mvanhorn@users.noreply.github.com>
Co-authored-by: Lucas Nogueira <lucas@tauri.app>
2026-10-16 15:34:17 -03:00
Amjad AlsharafiandLucas Nogueira c92bb67d7a fix(deep-link): filter out web links instead of app links in deep link domains (#3382)
* fix(deep-link): filter out web links instead of app links in deep link domains

This fixes a bug where on ios, deeplinks just don't work because the final Info.plist file doesn't have them.
And also used a better id for CFBundleURLName

Fixes regression from 2804803949

* feat(deep-link): add `webcredentials:` for iOS entitlements file

* chore: added changelog for deep-link patch

* add tests

* remove webcredentials

* -js

---------

Co-authored-by: Lucas Nogueira <lucas@tauri.app>
2026-10-16 15:28:02 -03:00
Lucas Nogueira bbbdd9dd54 chore(deps): pin libc to 0.2.189 to fix resolution 2026-10-16 12:53:57 -03:00
renovate[bot]andLucas Nogueira ba98bfadc4 chore(deps): update rust crate zip to v9 (#3698)
* chore(deps): update rust crate zip to v9

* chore(updater): add change file for zip v9

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Lucas Nogueira <lucas@tauri.app>
2026-10-16 12:05:30 -03:00
TungliesandLucas Nogueira 738c323cfc feat(command): implement Drop for CommandChild with kill_on_drop option (#3149)
* feat(command): implement Drop for CommandChild with kill_on_drop option

* fmt

* log

* merge fixes, docs

* clippy

* Apply suggestion from @lucasfernog [skip ci]

---------

Co-authored-by: Lucas Nogueira <lucas@tauri.app>
2026-10-16 09:00:00 -03:00
Lucas Nogueira 0bd82c829b chore: downgrade libc to fix iOS build 2026-10-15 19:38:33 -03:00
renovate[bot] 056397d10f chore(deps): update dependency @tauri-apps/cli to v2.12.2 (#3708)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-10-15 19:21:40 -03:00
renovate[bot] eb27a7cf7f chore(deps): update dependency @zerodevx/svelte-json-view to v2.0.1 (#3705)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-10-15 19:19:49 -03:00
renovate[bot] 90694454fe chore(deps): update dependency rollup to v4.64.5 (#3706)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-10-15 19:18:56 -03:00
renovate[bot] 93c11642a3 chore(deps): update dependency typescript-eslint to v8.71.2 (#3714)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-10-15 19:18:34 -03:00
Fabian-Lars 463977675d fix(deep-link): compilation error with rust-ini 0.21.3 (#3711) 2026-10-15 19:18:16 -03:00
kxrn_gupta 6c9746e551 fix(single-instance): handle Windows startup race and ensure secondary instance exits (#3704) 2026-10-15 13:06:10 -03:00
FabianLars 6ea32db9a8 docs(sql): fix platform matrix 2026-10-15 10:13:39 +02:00
github-actions[bot]andLucas Nogueira 44293a5722 Publish New Versions (v2) (#3689)
* publish new versions

* torch 2.0.0

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Lucas Nogueira <lucas@tauri.app>
opener-js-v2.7.2 persisted-scope-v2.4.2 single-instance-v2.5.4 notification-js-v2.7.0 geolocation-js-v2.5.0 deep-link-js-v2.6.2 updater-js-v2.14.0 dialog-js-v2.8.3 clipboard-manager-js-v2.5.0 biometric-v2.5.0 geolocation-v2.5.0 fs-js-v2.7.1 http-v2.8.3 sql-js-v2.6.0 deep-link-v2.6.2 barcode-scanner-js-v2.5.3 opener-v2.7.2 notification-v2.7.0 updater-v2.14.0 biometric-js-v2.5.0 dialog-v2.8.3 clipboard-manager-v2.5.0 barcode-scanner-v2.5.3 http-js-v2.8.3 sql-v2.6.0 fs-v2.7.1
2026-10-14 15:17:54 -03:00
Lucas Nogueira 7550f7cdb3 chore(deps): bump rustls to 0.23.46 2026-10-14 13:36:20 -03:00
36d8e4098e feat(geolocation): support for non-GMS devices (#3377)
* chore(geolocation): update gradle

* feat(geolocation): add support for android devices without GMS

* fix(geolocation): watchPosition does not resolve on android

* feat(example): add watch support for geolocation

* chore: add changeset

* Update .changes/geolocation-non-gms.md

Co-authored-by: Fabian-Lars <30730186+FabianLars@users.noreply.github.com>

* fix(geolocation): only use Android Location API on API Level >= 31

* fix resolve

* fix(geolocation): use LocationManagerCompat for non-GMS devices

- support API 24+ instead of only API 31+
- pick the best enabled provider (fused, gps, network) instead of GPS only
- honor enableHighAccuracy in getCurrentPosition
- clear the previous listener before starting a new watch
- report an error when the provider is disabled during a watch
- share the provider/priority logic between both code paths
- drop the geolocation-js bump, no JS changes

* fix(examples): clear existing geolocation watch before starting a new one

* chore(geolocation): add change file for watchPosition resolve fix

* fix(geolocation): honor enableHighAccuracy in getCurrentPosition on Android 12+ without GMS

* fix(geolocation): fall back to the next provider when one returns no fix on Android without GMS

* fix(geolocation): honor timeout in getCurrentPosition on Android

* fix(geolocation): keep multiple watchPosition watches active on Android

* chore(geolocation): bump geolocation-js alongside geolocation in change files

* refactor(geolocation): report provider errors from the callers of androidProviders

* e2e tests

---------

Co-authored-by: Tony <68118705+Legend-Master@users.noreply.github.com>
Co-authored-by: Fabian-Lars <30730186+FabianLars@users.noreply.github.com>
Co-authored-by: Lucas Nogueira <lucas@tauri.app>
2026-10-13 17:37:39 -03:00
Umut DağandLucas Nogueira 57297f3fb1 feat(clipboard-manager): add support for writing secrets (#3376)
* feat(clipboard-manager): add support for writing secrets

add `write_secret` command that writes a text into the clipboard and
hints clipboard managers to not save the text.

uses `arboard`'s `SetExtLinux`, `SetExtWindows`, and `SetExtApple`
extensions for each platform.

* fix(clipboard-manager): require arboard 3.6

* chore(clipboard-manager): add license header to secret.rs

* fix(clipboard-manager): only exclude from monitoring on Windows

* refactor(clipboard-manager): replace ExcludeSecret trait with a function

* chore(clipboard-manager): drop redundant cfg(desktop) in desktop.rs

* refactor(clipboard-manager): share clipboard access in a helper

* feat(clipboard-manager): implement write_secret on Android and iOS

* docs(clipboard-manager): document writeSecret

* chore(clipboard-manager): add change file for writeSecret

* test(clipboard-manager): cover writeSecret in e2e

---------

Co-authored-by: Lucas Nogueira <lucas@tauri.app>
2026-10-13 17:37:11 -03:00
shouyuandLucas Nogueira 1ab930465f fix(opener): avoid blocking-runtime panic in reveal_item_in_dir (#3565)
* fix(opener): avoid blocking-runtime panic in reveal_item_in_dir

* fix(opener): run zbus reveal on a dedicated thread for all callers

Move the runtime-panic fix into the Linux/BSD implementation so the
public Rust APIs are covered too, not just the JS command, and propagate
the spawn_blocking join error via the existing Tauri error variant.

---------

Co-authored-by: Lucas Nogueira <lucas@tauri.app>
2026-10-13 14:44:22 -03:00
Christopher PruijsenandLucas Nogueira 0e17675653 fix(http): decode header values as ISO-8859-1 (#3586)
* fix(http): decode response header values as ISO-8859-1

Response header values were decoded with String::from_utf8 before being
sent over IPC. Raw UTF-8 bytes produced JS strings with code points
above 255, which new Headers() rejects as invalid ByteStrings
("Type error" on WebKit), and bytes that were not valid UTF-8 failed
the fetch outright. Decode as ISO-8859-1 instead so every byte maps to a
char 0-255, matching what browsers expose for the same response.

Fixes #2898

* fix(http): add tests for ISO-8859-1 response header decoding

Cover the #2898 Content-Disposition case and non-UTF-8 header bytes on
the same conversion fetch_send uses, so a revert to UTF-8 fails the suite.

* request headers, e2e test

---------

Co-authored-by: Lucas Nogueira <lucas@tauri.app>
2026-10-13 14:43:50 -03:00
kxrn_gupta 62b3565fb5 chore(deps): update quinn-proto (lockfile-only) (#3707)
Updates quinn-proto from 0.11.14 to 0.11.19 to resolve recent security advisories (RUSTSEC-2026-0338, RUSTSEC-2026-0339, RUSTSEC-2026-0340, RUSTSEC-2026-0342).
2026-10-13 14:23:53 +02:00
0xbizkandLucas Nogueira d80b1be257 feat: add torch plugin for iOS and Android (#3551)
* feat(barcode-scanner): add torch toggle

* feat: torch plugin

* fix

---------

Co-authored-by: Lucas Nogueira <lucas@tauri.app>
2026-10-13 05:37:04 -03:00
kxrn_guptaandLucas Nogueira c91a9e6af5 feat(sql): add autoCreate option to Database.load (#3702)
* feat(sql): add autoCreate option to Database.load

Add utoCreate option to Database.load allowing users to disable implicit database creation when loading a database.

Closes #299

* fix(sql): fix unused variable without a database feature

* refactor(sql): share the database existence check between drivers

* fix(sql): don't report a failed existence check as a missing database

* fix(sql): name the database as passed, without password, in the missing database error

* fix(sql): don't create the app config dir when autoCreate is false

* refactor(sql): use the LoadOptions default for missing options

* test(sql): cover autoCreate and password redaction

---------

Co-authored-by: Lucas Nogueira <lucas@tauri.app>
2026-10-12 10:46:00 -03:00
Charles SchaeferandLucas Nogueira 0374bec1e2 [feat] [biometric] Adding the capability of encrypting/decrypting data using biometric authentication on Android (Ref. #2306) (#2454)
* –feat: adding the ability to encrypt/decrypt data based on the biometric auth

Adding the method biometricCipher() that allows to use the biometric authentication to use a generated key from android that can be accessed only through the biometric authentication. The method uses this key to encrypt/decrypt the data provided by the caller in the "options" parameter, with "dataToEncrypt" or "dataToDecrypt" filled.

Changes were done both on Kotlin, Rust and JS sides.

* Improving the way we encrypt data by allowing only if the biometric was successful.

* Adding a warning on the JS side

* Adding doc changes in readme.md

* Adding doc changes in readme.md

* Update README.md - it was updated incomplete

* update docs

* enhance error handling

* update example

---------

Co-authored-by: Lucas Nogueira <lucas@tauri.app>
2026-10-12 10:38:16 -03:00
Shreyash Gupta b3e52ce036 fix(barcode-scanner): settle the pending scan() promise on cancel (fix #3560) (#3571)
On Android, cancel() called destroy() first, and destroy() sets
savedInvoke to null, so the savedInvoke?.reject("cancelled") that
follows was a no-op. The pending scan() promise was never settled and
callers awaiting it were stranded, which is especially bad in windowed
mode where the page background stays transparent.

Reject the pending invoke before tearing the camera down, matching the
order the iOS implementation already uses.
2026-10-12 10:32:41 -03:00
renovate[bot] de501ac3b0 chore(deps): update dependency rollup to v4.64.3 (#3697)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-10-12 10:31:03 -03:00
kxrn_gupta f8296d038f fix(fs): pass require_literal_leading_dot when initializing runtime scope (#3701)
When initializing the plugin's runtime scope in .setup, pass 
equire_literal_leading_dot from config to FsScope::Scope instead of using FsScope::default() so that paths allowed dynamically via s_scope().allow_directory() inherit the configured value.

Closes #3699
2026-10-12 10:30:21 -03:00
BestCodesandLucas Nogueira 4356356dab fix: keep GNOME notifications open (fix #2566) (#3588)
* experimenting...

Signed-off-by: BestCodes <106822363+The-Best-Codes@users.noreply.github.com>

* omit unconfirmed fact from .changes

Signed-off-by: BestCodes <106822363+The-Best-Codes@users.noreply.github.com>

* fix(notification): send untracked Linux notifications on the shared connection

Holding notify-rust's handle with `on_close` blocked an async runtime
worker until the server closed the notification, and opened a D-Bus
connection per notification. Since GNOME keeps notifications in its tray,
a handful of them could stall every async task of the app.

Send every notification on the connection the plugin already keeps open
for its action listener instead: it keeps the sender's name alive for
GNOME at the cost of a single connection and thread, and the listener
runs the `on_close` callbacks.

* fix(notification): offer `on_close` on the BSDs too

The BSDs share the D-Bus implementation with Linux, including the GNOME
issue, so gate `NotificationBuilder::on_close` like the rest of that
implementation and document when the callback runs.

* fix(notification): run `on_close` without the tracker lock held

The callback ran on the listener thread while the guard of the callback
map was alive, and a panic in it ended that thread, which then reported
no action of any notification for the rest of the app's life. Take the
callback out of the map before running it and contain its panics.

* fix(notification): use the covector package names in the change files

`tauri-plugin-notification` and `@tauri-apps/plugin-notification` are
not packages of .changes/config.json, so covector refused the change
file. Use `notification` and `notification-js`, and record the new
`on_close` API as a feature of its own.

Also let `on_close` take an `FnOnce`, since it runs at most once.

---------

Signed-off-by: BestCodes <106822363+The-Best-Codes@users.noreply.github.com>
Co-authored-by: Lucas Nogueira <lucas@tauri.app>
2026-10-12 09:46:43 -03:00
Lucas Fernandes NogueiraandAmr Bashir 8efe845612 chore: add AGENTS.md (#3680)
* chore: add AGENTS.md

* Apply batched suggestions from code review [skip ci]

Co-authored-by: Amr Bashir <amr.bashir2015@gmail.com>

* simplify

---------

Co-authored-by: Amr Bashir <amr.bashir2015@gmail.com>
2026-10-11 22:07:25 -03:00