-
-
Notifications
You must be signed in to change notification settings - Fork 264
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
Conversation
@nielsvanvelzen I have decided to put the multi-server stuff into another PR, I have to spend some extra thoughts before implementing that. |
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.
Looks fine. Got some small comments
app/src/main/java/org/jellyfin/mobile/webapp/ConnectionHelper.kt
Outdated
Show resolved
Hide resolved
.mapNotNull(String::toIntOrNull) | ||
when { | ||
version.size != 3 -> false | ||
version[0] == 10 && version[1] < 3 -> true // Valid old version |
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.
We might want to add the "supported version" as a constant somewhere so it can be changed more easily.
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 think the check is only there because of the "ProductName" variable that isn't available before 10.3..
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.
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.
app/src/main/java/org/jellyfin/mobile/webapp/ConnectionHelper.kt
Outdated
Show resolved
Hide resolved
Extract connection handling into extra class, don't reset server URL on errors, replace toasts with error text.
13d9e3a
to
d5b9d8a
Compare
Extract connection handling into extra class, don't reset server URL on errors, replace toasts with error text.