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

Add version checker #15

Draft
wants to merge 6 commits into
base: ver/1.1.0
Choose a base branch
from
Draft

Add version checker #15

wants to merge 6 commits into from

Conversation

stumper66
Copy link

Implements #3

Adds a version checker as defined in #3
@stumper66 stumper66 changed the base branch from master to ver/1.1.0 November 13, 2024 00:20
stumper66 and others added 4 commits November 12, 2024 18:23
Don't ignore error messages from update checker
Update checking settings were moved out of the command blocker settings.

With the migration code, cleaned up the code interfacing with Configurate.
reformatting code via IDE
initial code cleanup, unfortunately I forgot to reformat the code for v1.1.0 so it's also touching unrelated files :/
Copy link
Member

@lokka30 lokka30 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fantastic work - thanks as always!
I'll try sort out these remaining to-do's and then merge. 👍🏻

}

if (isNewerVersion){
notifyMessage = "Your BlackWindow version is a pre-release. Latest release version is " + latestVersion + ". (You're running " + currentVersion + ")";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll switch these hard coded messages to the translations system already in BW

}

// returns if successful or not
public boolean checkLatestVersion(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll convert this over to an exception system rather than booleans + error message variables - might be cleaner to handle errors, or otherwise easier to backtrace

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should be resolved in latest commit - will look over later to confirm nothing else to do on this


this.verStr = verStr;

for (final String numTemp : verStr.split("\\.")) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I need to define a formal version specification for BlackWidow and make sure we can parse it with this update checker.

@lokka30 lokka30 marked this pull request as draft November 13, 2024 14:41
Changed errorMessage variables to exceptions
UpdateChecker is now static
@stumper66
Copy link
Author

I hadn't realized there were conflicts until I uploaded the newest commit. The conflict resolver is very confusing, hopefully I didn't accidently remove anything you added.

@lokka30
Copy link
Member

lokka30 commented Nov 14, 2024

I hadn't realized there were conflicts until I uploaded the newest commit. The conflict resolver is very confusing, hopefully I didn't accidently remove anything you added.

Should be no worries, will iron any issues caused by this later

@lokka30
Copy link
Member

lokka30 commented Nov 22, 2024

Will put this on hold @stumper66 and work on it alongside whatever's next in line for this plugin. Might wait for some more use of the plugin before spending more time on it :)

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.

2 participants