diff --git a/.changes/app-bound-domains.md b/.changes/app-bound-domains.md deleted file mode 100644 index 1c09e4412..000000000 --- a/.changes/app-bound-domains.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"wry": "patch" ---- - -Add `WebViewBuilder::with_limit_navigations_to_app_bound_domains` only on iOS. -Function is a no-op if iOS version is less than iOS 14. \ No newline at end of file diff --git a/.changes/cookies-api.md b/.changes/cookies-api.md deleted file mode 100644 index 930071629..000000000 --- a/.changes/cookies-api.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"wry": "patch" ---- - -Add `WebView::set_cookie` and `WebView::delete_cookie` APIs. diff --git a/.changes/linux-download-handler-destination.md b/.changes/linux-download-handler-destination.md deleted file mode 100644 index fd3f14bb1..000000000 --- a/.changes/linux-download-handler-destination.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"wry": "patch" ---- - -On Linux, the `download_started_handler` will now get the correct suggested destination path. diff --git a/CHANGELOG.md b/CHANGELOG.md index b836a92d4..9ffbc6a34 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## \[0.52.2] + +- [`43e78ff`](https://github.com/tauri-apps/wry/commit/43e78ff6b09fe9cac84ff7d73460f170a8c32081) ([#1588](https://github.com/tauri-apps/wry/pull/1588) by [@zphrs](https://github.com/tauri-apps/wry/../../zphrs)) Add `WebViewBuilder::with_limit_navigations_to_app_bound_domains` only on iOS. + Function is a no-op if iOS version is less than iOS 14. +- [`60dba38`](https://github.com/tauri-apps/wry/commit/60dba38ddcc01c428feccea2957adf69128373ef) ([#1569](https://github.com/tauri-apps/wry/pull/1569) by [@WSH032](https://github.com/tauri-apps/wry/../../WSH032)) Add `WebView::set_cookie` and `WebView::delete_cookie` APIs. +- [`78634b3`](https://github.com/tauri-apps/wry/commit/78634b3d4dd31651f9e6a3959cbb5f994502a92b) ([#1594](https://github.com/tauri-apps/wry/pull/1594) by [@FabianLars](https://github.com/tauri-apps/wry/../../FabianLars)) On Linux, the `download_started_handler` will now get the correct suggested destination path. + ## \[0.52.1] - [`63eaab8`](https://github.com/tauri-apps/wry/commit/63eaab80bad7c5f888893c79690c5b626d015eb3) ([#1573](https://github.com/tauri-apps/wry/pull/1573) by [@Legend-Master](https://github.com/tauri-apps/wry/../../Legend-Master)) Fix `wry::DragDropEvent::Drop::paths` returns random data on Windows diff --git a/Cargo.lock b/Cargo.lock index 442649e85..8f53bad26 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4128,7 +4128,7 @@ checksum = "1e9df38ee2d2c3c5948ea468a8406ff0db0b29ae1ffde1bcf20ef305bcc95c51" [[package]] name = "wry" -version = "0.52.1" +version = "0.52.2" dependencies = [ "base64", "block2 0.6.0", diff --git a/Cargo.toml b/Cargo.toml index d26fbe266..3aa25d93b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,7 +2,7 @@ workspace = {} [package] name = "wry" -version = "0.52.1" +version = "0.52.2" authors = ["Tauri Programme within The Commons Conservancy"] edition = "2021" license = "Apache-2.0 OR MIT" diff --git a/README.md b/README.md index 6aa090afb..4b55ee38e 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ [![https://good-labs.github.io/greater-good-affirmation/assets/images/badge.svg](https://good-labs.github.io/greater-good-affirmation/assets/images/badge.svg)](https://good-labs.github.io/greater-good-affirmation) [![support](https://img.shields.io/badge/sponsor-Open%20Collective-blue.svg)](https://opencollective.com/tauri) -Wry is a cross-platform WebView rendering library. +Wry is a Cross-platform WebView rendering library. The webview requires a running event loop and a window type that implements [`HasWindowHandle`], or a gtk container widget if you need to support X11 and Wayland. @@ -233,19 +233,17 @@ If you are cross-compiling for macOS using [osxcross](https://github.com/tpoecht ```bash RUSTFLAGS="-l framework=WebKit" cargo build --target=x86_64-apple-darwin --release ``` - #### Windows WebView2 provided by Microsoft Edge Chromium is used. So wry supports Windows 7, 8, 10 and 11. #### Android -In order for `wry` to be able to create webviews on Android, there are a few requirements that your application needs to uphold: - +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 set this env var to `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. @@ -260,7 +258,7 @@ It is recommended to use [`tao`](https://docs.rs/tao/latest/tao/) crate as it pr com_example, wry_app, WryActivity, - wry::android_setup, // pass the wry::android_setup function to tao which will be invoked when the event loop is created + wry::android_setup, // pass the wry::android_setup function to tao which will invoke when the event loop is created _start_app ); wry::android_binding!(com_example, ttt); @@ -269,7 +267,7 @@ It is recommended to use [`tao`](https://docs.rs/tao/latest/tao/) crate as it pr If this feels overwhelming, you can just use the preconfigured template from [`cargo-mobile2`](https://github.com/tauri-apps/cargo-mobile2). -For more information, check out [MOBILE.md](https://github.com/tauri-apps/wry/blob/dev/MOBILE.md). +For more inforamtion, checkout [MOBILE.md](https://github.com/tauri-apps/wry/blob/dev/MOBILE.md). ### Feature flags @@ -279,18 +277,18 @@ Wry uses a set of feature flags to toggle several advanced features. for the crate to work. This feature was added in preparation of other ports like cef and servo. - `protocol` (default): Enables [`WebViewBuilder::with_custom_protocol`] to define custom URL scheme for handling tasks like loading assets. -- `drag-drop` (default): Enables [`WebViewBuilder::with_drag_drop_handler`] to control the behavior when there are files +- `drag-drop` (default): Enables [`WebViewBuilder::with_drag_drop_handler`] to control the behaviour when there are files interacting with the window. - `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 + 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. - `transparent`: Transparent background on **macOS** requires calling private functions. Avoid this in release build if your app needs to publish to App Store. - `fullscreen`: Fullscreen video and other media on **macOS** requires calling private functions. Avoid this in release build if your app needs to publish to App Store. - `linux-body`: Enables body support of custom protocol request on Linux. Requires - WebKit2GTK v2.40 or above. -- `tracing`: enables [`tracing`] for `evaluate_script`, `ipc_handler`, and `custom_protocols`. + webkit2gtk v2.40 or above. +- `tracing`: enables [`tracing`] for `evaluate_script`, `ipc_handler` and `custom_protocols. ### Partners