-
Notifications
You must be signed in to change notification settings - Fork 339
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(updater): refactor and improvements #431
Conversation
plugins/updater/src/lib.rs
Outdated
@@ -99,3 +141,7 @@ impl Builder { | |||
.build() | |||
} | |||
} | |||
|
|||
pub fn init<R: Runtime>() -> TauriPlugin<R, Config> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So far we never exposed an init function when we have a Builder.. I feel it hides that API and could confuse the user IMO.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pushed a change to remove it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I feel like most users won't configure the plugin and just plug it and forget about it and the init function has a nicer syntax that I don't really think we should give that up.
needs tauri-apps/tauri#7174 and [email protected]