apply version updates (#1549)

Co-authored-by: lucasfernog <20051258+lucasfernog@users.noreply.github.com>
This commit is contained in:
github-actions[bot]
2025-06-24 13:27:09 -03:00
committed by GitHub
parent 41f4a3a65e
commit 180458bdf3
10 changed files with 21 additions and 40 deletions

View File

@@ -1,8 +0,0 @@
---
"wry": "minor:breaking"
---
Rename `WebViewBuilder` methods for consistency and clarity:
- Renamed `WebViewBuilder::with_web_context` to `WebViewBuilder::new_with_web_context`
- Renamed `WebViewBuilder::with_attributes` to `WebViewBuilder::new_with_attributes`

View File

@@ -1,5 +0,0 @@
---
wry: patch
---
Added iOS support for `set_background_color`.

View File

@@ -1,5 +0,0 @@
---
"wry": "minor:breaking"
---
`WebContext::is_custom_protocol_registered` now takes `&str` instead of `String`

View File

@@ -1,5 +0,0 @@
---
"wry": "minor"
---
Updated `webview2-com` to `0.38`.

View File

@@ -1,5 +0,0 @@
---
wry: patch
---
On Windows on systems running WebView2 v137+ wry now uses a new default background color API which should reduce white flashes. The use of the `RemoveRedirectionBitmap` browser flag (v134+) was removed due to crashes on Insider builds.

View File

@@ -1,5 +0,0 @@
---
wry: minor
---
Added `x11` feature flag (enabled by default).

View File

@@ -1,5 +1,20 @@
# Changelog
## \[0.52.0]
- [`5e6b0e6`](https://github.com/tauri-apps/wry/commit/5e6b0e689e38068c817ed1beb87af60b0fcbe0e2) ([#1555](https://github.com/tauri-apps/wry/pull/1555) by [@FabianLars](https://github.com/tauri-apps/wry/../../FabianLars)) Added iOS support for `set_background_color`.
- [`99dab51`](https://github.com/tauri-apps/wry/commit/99dab51fef0dfd49647a8e568f383553bbab6551) ([#1570](https://github.com/tauri-apps/wry/pull/1570) by [@renovate](https://github.com/tauri-apps/wry/../../renovate)) Updated `webview2-com` to `0.38`.
- [`41f4a3a`](https://github.com/tauri-apps/wry/commit/41f4a3a65e0c2ec8e63eedaee9b7fa4d6d3f4fa7) ([#1572](https://github.com/tauri-apps/wry/pull/1572) by [@FabianLars](https://github.com/tauri-apps/wry/../../FabianLars)) On Windows on systems running WebView2 v137+ wry now uses a new default background color API which should reduce white flashes. The use of the `RemoveRedirectionBitmap` browser flag (v134+) was removed due to crashes on Insider builds.
- [`eb40ac8`](https://github.com/tauri-apps/wry/commit/eb40ac8b2ab691bbc0e75bc9c27ba53e2f645e03) ([#1528](https://github.com/tauri-apps/wry/pull/1528) by [@aurelj](https://github.com/tauri-apps/wry/../../aurelj)) Added `x11` feature flag (enabled by default).
### breaking
- [`1567635`](https://github.com/tauri-apps/wry/commit/1567635ba5f660827d4ae20f4e226ed7fa595f12) ([#1558](https://github.com/tauri-apps/wry/pull/1558) by [@amrbashir](https://github.com/tauri-apps/wry/../../amrbashir)) Rename `WebViewBuilder` methods for consistency and clarity:
- Renamed `WebViewBuilder::with_web_context` to `WebViewBuilder::new_with_web_context`
- Renamed `WebViewBuilder::with_attributes` to `WebViewBuilder::new_with_attributes`
- [`f868658`](https://github.com/tauri-apps/wry/commit/f868658d6ffbf0a6b944faebb3b7565726c82f57) ([#1556](https://github.com/tauri-apps/wry/pull/1556) by [@Legend-Master](https://github.com/tauri-apps/wry/../../Legend-Master)) `WebContext::is_custom_protocol_registered` now takes `&str` instead of `String`
## \[0.51.2]
- [`f7781a7`](https://github.com/tauri-apps/wry/commit/f7781a788dbb0d07bea27f18daf844d70a3958a3) ([#1544](https://github.com/tauri-apps/wry/pull/1544) by [@lucasfernog](https://github.com/tauri-apps/wry/../../lucasfernog)) Allow modifying or removing the input accessory view on iOS via `WebViewBuilderExtIos::with_input_accessory_view_builder`.

2
Cargo.lock generated
View File

@@ -4090,7 +4090,7 @@ checksum = "1e9df38ee2d2c3c5948ea468a8406ff0db0b29ae1ffde1bcf20ef305bcc95c51"
[[package]]
name = "wry"
version = "0.51.2"
version = "0.52.0"
dependencies = [
"base64",
"block2 0.6.0",

View File

@@ -2,7 +2,7 @@ workspace = {}
[package]
name = "wry"
version = "0.51.2"
version = "0.52.0"
authors = ["Tauri Programme within The Commons Conservancy"]
edition = "2021"
license = "Apache-2.0 OR MIT"

View File

@@ -241,10 +241,10 @@ WebView2 provided by Microsoft Edge Chromium is used. So wry supports Windows 7,
In order for `wry` to be able to create webviews on Android, there is a few requirements that your application needs to uphold:
1. You need to set a few environment variables that will be used to generate the necessary kotlin
files that you need to include in your Android application for wry to function properly.
- `WRY_ANDROID_PACKAGE`: which is the reversed domain name of your android project and the app name in snake_case, for example, `com.wry.example.wry_app`
- `WRY_ANDROID_LIBRARY`: for example, if your cargo project has a lib name `wry_app`, it will generate `libwry_app.so` so you se this env var to `wry_app`
- `WRY_ANDROID_KOTLIN_FILES_OUT_DIR`: for example, `path/to/app/src/main/kotlin/com/wry/example`
files that you need to include in your Android application for wry to function properly.
- `WRY_ANDROID_PACKAGE`: which is the reversed domain name of your android project and the app name in snake_case, for example, `com.wry.example.wry_app`
- `WRY_ANDROID_LIBRARY`: for example, if your cargo project has a lib name `wry_app`, it will generate `libwry_app.so` so you se this env var to `wry_app`
- `WRY_ANDROID_KOTLIN_FILES_OUT_DIR`: for example, `path/to/app/src/main/kotlin/com/wry/example`
2. Your main Android Activity needs to inherit `AppCompatActivity`, preferably it should use the generated `WryActivity` or inherit it.
3. Your Rust app needs to call `wry::android_setup` function to setup the necessary logic to be able to create webviews later on.
4. Your Rust app needs to call `wry::android_binding!` macro to setup the JNI functions that will be called by `WryActivity` and various other places.
@@ -279,7 +279,6 @@ Wry uses a set of feature flags to toggle several advanced features.
loading assets.
- `drag-drop` (default): Enables [`WebViewBuilder::with_drag_drop_handler`] to control the behaviour when there are files
interacting with the window.
- `x11` (default): Enables x11 support and dependencies on Linux.
- `devtools`: Enables devtools on release builds. Devtools are always enabled in debug builds.
On **macOS**, enabling devtools, requires calling private apis so you should not enable this flag in release
build if your app needs to publish to App Store.