Skip to content
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

Merged
merged 23 commits into from
Aug 7, 2023
Merged

Conversation

amrbashir
Copy link
Member

@amrbashir amrbashir commented Jun 10, 2023

@lucasfernog lucasfernog marked this pull request as ready for review June 17, 2023 22:16
@lucasfernog lucasfernog requested a review from a team as a code owner June 17, 2023 22:16
@lucasfernog lucasfernog changed the title feat(updater): refactor and improvemnts feat(updater): refactor and improvements Jun 18, 2023
@amrbashir amrbashir requested a review from lucasfernog June 19, 2023 13:32
@@ -99,3 +141,7 @@ impl Builder {
.build()
}
}

pub fn init<R: Runtime>() -> TauriPlugin<R, Config> {
Copy link
Member

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.

Copy link
Member

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.

Copy link
Member Author

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.

@lucasfernog lucasfernog merged commit 4ab90f0 into v2 Aug 7, 2023
@lucasfernog lucasfernog deleted the feat/updater/refactor branch August 7, 2023 19:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[updater] allow user to change the updater endpoint during runtime
2 participants