wry@0.24.0
Ce contenu n’est pas encore disponible dans votre langue.
- Changed env vars used when building for Android; changed
WRY_ANDROID_REVERSED_DOMAIN
toWRY_ANDROID_PACKAGE
andWRY_ANDROID_APP_NAME_SNAKE_CASE
toWRY_ANDROID_LIBRARY
. - Fixes Android initialization scripts order.
- Remove redundant
.clone()
calls and avoid unnecessary heap allocations. - Change return type of custom protocol handlers from
Result<Response<Vec<u8>>>
toResult<Response<Cow<'static, [u8]>>>
. This allows the handlers to return static resources without heap allocations. This is effective when you embed some large files like bundled JavaScript source as&'static [u8]
usinginclude_bytes!
. - Ensures that the script passed to
.with_initialization_script("here")
is not empty. - Add APIs to process webview document title change.
- Evaluate scripts after the page load starts on Linux and macOS.
- Improve panic error messages on the build script.
- Add
WebViewBuilder::with_url_and_headers
andWebView::load_url_with_headers
to navigate to urls with headers. - Change class declare name from
UIViewController
toWryNavigationDelegate
to avoid class name conflict on iOS. - Rerun build script if the
WRY_ANDROID_KOTLIN_FILES_OUT_DIR
directory changes. - On Windows, Add
WebviewBuilderExtWindows::with_theme
andWebviewExtWindows::set_theme
to change webview2 theme.
© 2024 Tauri Contributors. CC-BY / MIT