added release state display to info app#56
added release state display to info app#56DirkBaumeister wants to merge 2 commits intoGrapheneOS:mainfrom
Conversation
|
So this checks for which model you have and fetched the values for your own device? What channel a release is in can differ per device. |
|
Yes, that's right. https://releases.grapheneos.org/husky-stable and parses the release number from each request and shows it in the according box. Would be great if someone could verify that android.os.Build.BOARD really gives the right model name 😄 |
|
Thanks. We'll get around to looking at this soon. |
It does currently, but is not guaranteed to be set to the required value for future devices. |
Thank you 🙂 I have changed it to this variable |
|
Needs to be rebased due to various conflicting changes. |
|
Made a rebase and should be compatible with the current main again :) |
app/src/main/kotlin/app/grapheneos/info/ui/releases/ReleaseState.kt
Outdated
Show resolved
Hide resolved
app/src/main/kotlin/app/grapheneos/info/ui/releases/ReleaseState.kt
Outdated
Show resolved
Hide resolved
app/src/main/kotlin/app/grapheneos/info/ui/releases/ReleaseState.kt
Outdated
Show resolved
Hide resolved
app/src/main/kotlin/app/grapheneos/info/ui/releases/ReleasesViewModel.kt
Show resolved
Hide resolved
app/src/main/kotlin/app/grapheneos/info/ui/releases/ReleasesViewModel.kt
Outdated
Show resolved
Hide resolved
|
Thanks :) I have resolved all your mentioned things in my code. @soupslurpr |
soupslurpr
left a comment
There was a problem hiding this comment.
Thank you. It needs a few more changes and then it should be ready to be merged.
app/src/main/kotlin/app/grapheneos/info/ui/releases/ReleasesViewModel.kt
Outdated
Show resolved
Hide resolved
app/src/main/kotlin/app/grapheneos/info/ui/releases/ReleaseState.kt
Outdated
Show resolved
Hide resolved
app/src/main/kotlin/app/grapheneos/info/ui/releases/ReleasesScreen.kt
Outdated
Show resolved
Hide resolved
app/src/main/kotlin/app/grapheneos/info/ui/releases/ReleaseState.kt
Outdated
Show resolved
Hide resolved
|
Thanks again for the feedback :) Should be resolved now @soupslurpr |
|
Just another edit: I have noticed that I haven't added updateReleaseStates to Lifecycle.Event.ON_START and to the PullToRefreshBox. |
soupslurpr
left a comment
There was a problem hiding this comment.
Thanks for noticing and adding that. It mostly looks good now, there's just one thing I'm unsure of.
app/src/main/kotlin/app/grapheneos/info/ui/releases/ReleasesScreen.kt
Outdated
Show resolved
Hide resolved
|
Thanks for the idea :) I think I also got this working now @soupslurpr |
soupslurpr
left a comment
There was a problem hiding this comment.
Everything looks good to me now! Thank you for the contribution.
|
Happy to help :) And thanks again for your feedback! :) |
|
So, is there any estimation when this probably could get merged? 🙂 |
|
So, just kindly want to bump this PR up :) Anything I should do before it can be merged? |
|
We have a lot of very high priorities and many recent PRs we've merged have caused issues resulting in needing to make unplanned emergency releases. It's not really a good time to be merging things we don't consider high priority. |
|
Thanks for the feedback :) Totally understandable! I will keep the PR updated from time to time if the main changes and maybe there comes a better time for merging it. Thanks again and also thanks for your awesome work! |
|
There are some conflicts with main branch |
Resolved the conflicts 🙂 |
|
It needs to be rebased. |
|
It still needs to be rebased against the current code and cleaned up. |
308ea0e to
9608a7a
Compare
|
Honestly I am not really familiar with rebasing. Would you mind telling me if I got it right now? Or how to do it right? |
|
No, this is definitely not right. It needs to be substantially cleaned up before it can be reviewed. |
|
Okay, but unfortunately I don't really know what you mean by cleaning up. If you can give me a hint where I can start than I'm definitely trying to resolve the problems. Thank you for your time |
I think he means that there is duplicate commits, and it is cluttering the PR, just squash all the commits into one commit and should be problem solved, I think |
3579313 to
e738b03
Compare
Okay, thanks for the reply :) I squashed my commits now into one, hope that helps |
|
This feature works very well on my device! It is helpful |
I tried to add a release state to the release notes tab in the info app.
It should look like this:
It fetches the current release state by using the android.os.Build.BOARD constant for stable, beta and alpha by constructing the url https://releases.grapheneos.org/$board-$releasePhase
Feedback is very much welcomed as these are my first steps in kotlin 😄