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

Split up web app and connection handling, use view binding for setup layout #50

Merged
merged 2 commits into from
Aug 24, 2020

Conversation

Maxr1998
Copy link
Member

Extract connection handling into extra class, don't reset server URL on errors, replace toasts with error text.

@Maxr1998 Maxr1998 added the enhancement New feature or request label Aug 24, 2020
@Maxr1998
Copy link
Member Author

Maxr1998 commented Aug 24, 2020

@nielsvanvelzen I have decided to put the multi-server stuff into another PR, I have to spend some extra thoughts before implementing that.

Copy link
Member

@nielsvanvelzen nielsvanvelzen left a comment

Choose a reason for hiding this comment

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

Looks fine. Got some small comments

.mapNotNull(String::toIntOrNull)
when {
version.size != 3 -> false
version[0] == 10 && version[1] < 3 -> true // Valid old version
Copy link
Member

Choose a reason for hiding this comment

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

We might want to add the "supported version" as a constant somewhere so it can be changed more easily.

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 think the check is only there because of the "ProductName" variable that isn't available before 10.3..

Copy link
Member

Choose a reason for hiding this comment

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

Hmm, I can imagine that some features in the nativeshell (and in the future, the apiclient) need a minimum version set too. Might even be a good thing to require 10.6.x at the release too.

@Maxr1998 Maxr1998 changed the title Split up web app and connection handling Split up web app and connection handling, use view binding for setup layout Aug 24, 2020
Extract connection handling into extra class, don't reset server URL on errors, replace toasts with error text.
@Maxr1998 Maxr1998 force-pushed the extract-connection-handling branch from 13d9e3a to d5b9d8a Compare August 24, 2020 20:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants