Ver Fonte

Revert "feat(core): expose `runtime_handle` on AppHandle (#6727)"

This reverts commit 276e4a3fdbc3a9c2c1063e767eaf11a2ad79bc98.
Lucas Fernandes Nogueira há 2 anos atrás
pai
commit
8e46695b7e

+ 0 - 5
.changes/app-runtime-handle.md

@@ -1,5 +0,0 @@
----
-"tauri": patch
----
-
-Added the `runtime_handle` method on `AppHandle`.

+ 0 - 5
.changes/expose-runtime.md

@@ -1,5 +0,0 @@
----
-"tauri": patch
----
-
-Re-export the `tauri_runtime` crate as `tauri::runtime`.

+ 0 - 5
core/tauri/src/app.rs

@@ -275,11 +275,6 @@ impl<R: Runtime> AppHandle<R> {
   pub(crate) fn create_proxy(&self) -> R::EventLoopProxy {
     self.runtime_handle.create_proxy()
   }
-
-  /// Returns the handle to the application runtime.
-  pub fn runtime_handle(&self) -> &R::Handle {
-    &self.runtime_handle
-  }
 }
 
 /// APIs specific to the wry runtime.

+ 1 - 1
core/tauri/src/lib.rs

@@ -199,7 +199,7 @@ mod manager;
 mod pattern;
 pub mod plugin;
 pub mod window;
-pub use tauri_runtime as runtime;
+use tauri_runtime as runtime;
 #[cfg(target_os = "ios")]
 mod ios;
 #[cfg(target_os = "android")]