Skip to content

Commit 55733ab

Browse files
authored
fix(core): iOS compilation without the wry feature (#10176)
Ref tauri-apps/plugins-workspace#1402
1 parent 7bc6a2a commit 55733ab

3 files changed

Lines changed: 7 additions & 2 deletions

File tree

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"tauri": patch:bug
3+
---
4+
5+
Move `PluginApi::register_ios_plugin` behind the `wry` Cargo feature as `Webview::with_webview` is only available when that feature is enabled.

core/tauri/src/manager/webview.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -631,7 +631,7 @@ impl<R: Runtime> WebviewManager<R> {
631631
.webview_created(webview_);
632632
});
633633

634-
#[cfg(target_os = "ios")]
634+
#[cfg(all(target_os = "ios", feature = "wry"))]
635635
{
636636
webview
637637
.with_webview(|w| {

core/tauri/src/plugin/mobile.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ impl<T> fmt::Display for ErrorResponse<T> {
152152

153153
impl<R: Runtime, C: DeserializeOwned> PluginApi<R, C> {
154154
/// Registers an iOS plugin.
155-
#[cfg(target_os = "ios")]
155+
#[cfg(all(target_os = "ios", feature = "wry"))]
156156
pub fn register_ios_plugin(
157157
&self,
158158
init_fn: unsafe fn() -> *const std::ffi::c_void,

0 commit comments

Comments
 (0)