mirror of
https://github.com/tauri-apps/tauri.git
synced 2024-09-19 04:08:45 +03:00
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:
parent
43858a3197
commit
4c39e46a3b
5
.changes/add-webview-version.md
Normal file
5
.changes/add-webview-version.md
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
'tauri': 'minor'
|
||||||
|
---
|
||||||
|
|
||||||
|
Added `tauri::webview_version` , to get webview version.
|
@ -68,6 +68,7 @@ use wry::{
|
|||||||
};
|
};
|
||||||
|
|
||||||
pub use wry::application::window::{Window, WindowBuilder as WryWindowBuilder, WindowId};
|
pub use wry::application::window::{Window, WindowBuilder as WryWindowBuilder, WindowId};
|
||||||
|
pub use wry::webview::webview_version;
|
||||||
|
|
||||||
#[cfg(windows)]
|
#[cfg(windows)]
|
||||||
use wry::webview::WebviewExtWindows;
|
use wry::webview::WebviewExtWindows;
|
||||||
|
@ -210,6 +210,10 @@ use std::{collections::HashMap, fmt, sync::Arc};
|
|||||||
// Export types likely to be used by the application.
|
// Export types likely to be used by the application.
|
||||||
pub use runtime::http;
|
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(target_os = "macos")]
|
||||||
#[cfg_attr(doc_cfg, doc(cfg(target_os = "macos")))]
|
#[cfg_attr(doc_cfg, doc(cfg(target_os = "macos")))]
|
||||||
pub use runtime::{menu::NativeImage, ActivationPolicy};
|
pub use runtime::{menu::NativeImage, ActivationPolicy};
|
||||||
|
Loading…
Reference in New Issue
Block a user