[pull] dev from tauri-apps:dev - #19
Open
pull[bot] wants to merge 3768 commits into
Open
Conversation
* refactor(macos-sign): use base64 crate instead of Command * add base64 crate as a dependency * add change file --------- Co-authored-by: Lucas Nogueira <lucas@tauri.app>
Co-authored-by: Fabian-Lars <30730186+FabianLars@users.noreply.github.com>
…velte to v7 (#15103) * chore(deps): update dependency @sveltejs/vite-plugin-svelte to v7 * Update vite to v8 * Update devalue --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Tony <legendmastertony@gmail.com> Co-authored-by: Tony <68118705+Legend-Master@users.noreply.github.com>
* reduce cloning in `EmbeddedAssets::get` * Apply suggestion from @Legend-Master * Fix github suggestion --------- Co-authored-by: Tony <68118705+Legend-Master@users.noreply.github.com> Co-authored-by: Tony <legendmastertony@gmail.com>
* chore(deps): Update cargo-mobile2 and toml crates * remove toml from tauri-build cargotoml * 0.22.3 * try a range * json5 and changefile * Revert "json5 and changefile" This reverts commit eda416b. * keep changefile
* refactor(tauri-build): make better use of OsString Co-authored-by: Tony <68118705+Legend-Master@users.noreply.github.com> * refactor(tauri-build): dont wrap const value in function * refactor(tauri-build): None codepath is never used, replace Option<Vec> with Vec * refactor(tauri): use blocking apis where it makes sense * refactor(tauri): better use of std::fs API * refactor(tauri): rewind to start * refactor(tauri): fmt * add change file
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: FabianLars <30730186+FabianLars@users.noreply.github.com>
* Allow getting inner PathBuf from SafePathBuf SafePathBuf implements AsRef<Path> which is ergonomic and useful. However, some APIs take owned PathBufs. This leads to clunky code where the caller has to get a &Path from the SafePathBuf then take ownership of that path. Ideally, if a user has a SafePathBuf and needs a PathBuf, they won't need to allocate again just to get the inner PathBuf back. * Apply suggestion from @Legend-Master
* refactor(runtime-wry): remove RefCell hack * Remove `Sync` requirement on `on_new_window` * Merge branch 'dev' into remove-ref-cell-hack * Add change file
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
* test: add more unit-tests for `html` module * refactor: remove html dependencies from `tauri-cli` * feat: introduce `html-manipulation-2` feature * Remove deprecation * Use new feature flag * Unroll `build` feature * Introduce `build-2` feature * Reduce diff * Use `build-2` in more places * Add docs * Refactor `inject_script_hashes` * Refactor `with_head` * Rename serialize and parse functions * Add changes file * Remove unused function * Update changelog * Remove test * Update wry * Add todo comments we don't have the git blame data in html2, better do it now or never find it again * refactor `with_head` to `ensure_head` * Remove unused casts * Avoid using format to construct html elements which has the potential to get injected * Feature gate `inline_isolation` * Keep old prepends appends * Fix `inline_isolation_replaces_src_with_content` test * End meta tag * Mirror test to old html module * Use back to `append_html` for csp and link issue * Try out dom query main branch * Use nodes instead to avoid an extra clone * Use wry 0.54.4 and dom_query 0.27 * Mark stability * Remove `PatternObject` --------- Co-authored-by: Tony <legendmastertony@gmail.com> Co-authored-by: Tony <68118705+Legend-Master@users.noreply.github.com>
* feat(wix): add minimum webview2 version option * Add change file * Format * Move comments inside `#if` block * add breaking change notes * Add deprecation to description schema * Merge remote-tracking branch 'upstream/dev' into wix-minimum-webview2-version * Merge branch 'dev' into wix-minimum-webview2-version
* feat(bundler): support Liquid Glass icons, closes #14207 the `icon` config now supports loading an Assets.car directly or a `.icon` (Icon Composer asset) that gets compiled into an Assets.car file * fmt * fix build * add version checks * fmt * fix icns fallback * fmt
* feat: changes for tauri 0.36 * Tao 0.36 wry 0.56 events (#15789) * use git version of tao and wry * Migrate window events * use my wry branch * Gate behind mobile * tao 0.36 * wry 0.56 and dom_query 0.28 * change tag * Use `onCreate` exclusively --------- Co-authored-by: Tony <68118705+Legend-Master@users.noreply.github.com>
* feat: expose wry permission handler API in tauri * fix: preserve default permission behavior * refactor: move webview permission mappings * refactor: rename permission mapping helpers * from not to * add docs about the fall through * update change file --------- Co-authored-by: Tony <68118705+Legend-Master@users.noreply.github.com> Co-authored-by: Tony <legendmastertony@gmail.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
* Try to use whichever activity available * Add change file * Clean up
* ci: remove renovate cli group name * bump napi-rs but auto cli packages * why prettier this time?
* chore(deps): update dependency vitest to v4.1.10 * Fix audit * override undici * bump log plugin to fix audit --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Tony <legendmastertony@gmail.com>
* chore(deps): update rust crate glob to v0.3.4 * update snapshots * fix mac and linux * take 3 --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Tony <legendmastertony@gmail.com>
…tic (#15777) * fix: make embedded assets codegen and config serialization deterministic generate_context! emitted the embedded asset map and the CSP script/style hashes in filesystem walk order (varies across machines) and HashMap iteration order (varies per process), and serializing the processed config wrote the csp/headers/plugins maps in HashMap iteration order. Both broke reproducible builds: the same source built on two machines produced different binaries and a different tauri.conf.json in the generated Android project. Iterate all of them sorted, complementing #14986 which sorted the same config maps on the ToTokens path. closes #14978 * Use `BTreeMap` for embedded assets and inline script hashes * remove outdated comment * Convert to BTreeMap instead of sort to vec --------- Co-authored-by: Tony <68118705+Legend-Master@users.noreply.github.com> Co-authored-by: Tony <legendmastertony@gmail.com>
…5821) * fix(runtime-wry): return the expected exit code from run_return() Transfer the exit code from the window.app_handle().exit(1) call to the run_return() result instead of always returning 0.
* fix(build): resolve target dir from OUT_DIR on new nightly * fix(build): clarify OUT_DIR comment and tidy up the new tests * fix(build): move the target dir TODO onto the helper and document the layouts --------- Co-authored-by: Lazizbek Ergashev <20501725+lazerg@users.noreply.github.com>
* chore(deps): update napi-rs packages * place napi groupng at the end * bump in cargo.toml * fix audit --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Tony <legendmastertony@gmail.com>
* chore(deps): update dependency rollup to v4.62.4 * bump nanoid for audit --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Tony <legendmastertony@gmail.com>
* Android: Gradle upgrades
* typos
* bump agp to latest
* Remove all jvmTarget
* clean up unused
* migrate to getByName
* remove `id("org.jetbrains.kotlin.android")` from plugin template
* Try disable `builtInKotlin`
* revert all gradle 9 migrations
* back to JVM_1_8
* remove `org.gradle.toolchains.foojay-resolver-convention` as I still don't understand what it does
* `android.useAndroidx` is true by default
* fix white spaces before first packaging
* Only `consumerProguardFiles` is used for Android libaries
* pickup the right proguard rules
* install cli instead of moving the built one
* bump spin and install locked
* try latest java and ndk
* try to work around missing `consumer-rules.pro`
* Add change files
* more specific about both gradle and plugin versions
* remove unused linux deps installation step
* Revert "try to work around missing `consumer-rules.pro`"
This reverts commit f1afdd9.
* Disable `android.proguard.failOnMissingFiles` instead
* update change file that we don't do the work around in tauri-build anymore
* update gradle wrapper and scripts
* use file helper
reference: https://issuetracker.google.com/issues/463283604#comment10
---------
Co-authored-by: Megh Parikh <meghprkh@gmail.com>
* fix: menu related commands can panic * update change file
…15630) * fix(runtime-wry): query monitors on main thread from runtime handle WryHandle::primary_monitor, monitor_from_point and available_monitors read the event loop's window target directly on the calling thread. That window target is not thread safe, so calling these functions from a background thread races with the UI thread and can segfault or corrupt the heap. Route the three queries through the event loop like cursor_position already does, so the window target is only accessed on the main thread. Closes #15170 * refactor(runtime-wry): use event_loop_window_getter! for monitor queries Reuse the existing event_loop_window_getter! macro (as cursor_position does) instead of hand-rolling the channel + send_user_message boilerplate in primary_monitor, monitor_from_point and available_monitors. These methods return bare Option/Vec, so a small closure absorbs the macro's internal `?`. * Revert "refactor(runtime-wry): use event_loop_window_getter! for monitor queries" This reverts commit fc2078b. * fix(runtime-wry): return no monitors when event loop send fails If send_user_message errors the event loop will never reply, so recv() would block the calling thread forever. Return None / an empty Vec on a send error instead of waiting. * return results * fix mock --------- Co-authored-by: Tony <68118705+Legend-Master@users.noreply.github.com> Co-authored-by: Tony <legendmastertony@gmail.com>
* feat(cli): warn when Java is too new for the bundled Gradle Installing a very recent JDK (e.g. Java 25/26) while Tauri ships Gradle 8.14 makes Android builds fail with a cryptic 'Failed to assemble APK' error. Detect the active Java feature version during the Android env setup and warn upfront when it exceeds what the bundled Gradle can run, pointing at the Gradle/Java compatibility matrix. Closes #15385 * refactor(cli): detect Java version without spawning a subprocess Read the major version from the JDK's `release` metadata file instead of running `java -version` on every Android command, so the compatibility warning no longer adds process-spawn overhead to init/dev/build. * feat(cli): derive Java/Gradle compat from the project's Gradle version Read the Gradle version from the project's gradle-wrapper.properties instead of a hardcoded template constant, so the warning stays correct when users upgrade Gradle. Skip the warning when the project or Gradle version can't be determined (and for Gradle 9+, which tracks new Java quickly). * refactor(cli): move Android Java/Gradle checks to a dedicated module Extract the Java detection and Java/Gradle compatibility checks out of android/mod.rs into android/java.rs, and recommend the exact supported Java ceiling in the warning instead of a stale LTS list. Addresses @Legend-Master's feedback. * revert ensure java * move the check to get_config the project path is only available after it * check 9.1 and 9.4 --------- Co-authored-by: Tony <68118705+Legend-Master@users.noreply.github.com> Co-authored-by: Tony <legendmastertony@gmail.com>
* chore: make tauri deps into workspace deps * add change file * fmt * enable default features for example and bench * enable default features for example and bench for tauri-build * Revert "enable default features for example and bench for tauri-build" This reverts commit 5c15412. * re-order deps * use workspace dependencies everywhere * set `default-features` to false for `tauri-build` * fix api example * use exact versions like before * tauri doesn't need to depend on itself * use path `.` for tauri * fix change files * no need to tell the users for the workspace change * bring back default features false to tauri dev dep * fix missing features for sample plugin --------- Co-authored-by: Tony <legendmastertony@gmail.com>
* chore(deps): update rust crate png to 0.18 * fix compile * Add change file --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Tony <legendmastertony@gmail.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
* fix: add ECMAScript Explicit Resource Management to Resource * Update change file * Regenerate bundle.global.js * `await this.close()` instead of return * Add required libs --------- Co-authored-by: Tony <68118705+Legend-Master@users.noreply.github.com> Co-authored-by: Tony <legendmastertony@gmail.com>
* docs(api): Explicit Resource Management for `Resource` * Apply suggestions from code review Co-authored-by: Fabian-Lars <30730186+FabianLars@users.noreply.github.com> * separate examples --------- Co-authored-by: Fabian-Lars <30730186+FabianLars@users.noreply.github.com>
* refactor: lock minor versions * pin bundler and macos-sign
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
See Commits and Changes for more details.
Created by
pull[bot]
Can you help keep this open source service alive? 💖 Please sponsor : )