feat: current_version feature (#7026)

* feat: reexport webview_verion

* chore: clippy problems

* fix: add .changes md file

* Update .changes/add-webview-version.md
This commit is contained in:
Amirhossein Akhlaghpour 2023-05-23 19:05:49 +03:30 committed by GitHub
parent 43858a3197
commit 4c39e46a3b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 0 deletions

View File

@ -0,0 +1,5 @@
---
'tauri': 'minor'
---
Added `tauri::webview_version` , to get webview version.

View File

@ -68,6 +68,7 @@ use wry::{
};
pub use wry::application::window::{Window, WindowBuilder as WryWindowBuilder, WindowId};
pub use wry::webview::webview_version;
#[cfg(windows)]
use wry::webview::WebviewExtWindows;

View File

@ -210,6 +210,10 @@ use std::{collections::HashMap, fmt, sync::Arc};
// Export types likely to be used by the application.
pub use runtime::http;
#[cfg(feature = "wry")]
#[cfg_attr(doc_cfg, doc(cfg(feature = "wry")))]
pub use tauri_runtime_wry::webview_version;
#[cfg(target_os = "macos")]
#[cfg_attr(doc_cfg, doc(cfg(target_os = "macos")))]
pub use runtime::{menu::NativeImage, ActivationPolicy};