-
-
Notifications
You must be signed in to change notification settings - Fork 30
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
Feed section phase 2.5 #245
Conversation
Since null in max_ts means server assumes max_ts as current time, it makes sense to just leave it as null.
This reverts commit 6a49331.
1) Connection and disconnection to spotify app remote is now coroutine safe. 2) Spotify app remote connection now persists as long as the app is visible to user.
This is done to reuse the same code for API calls and not write API calls again and again for each view-model. Also, Refactored dependencies a bit.
This was done due to ill experience when in landscape mode.
1) Moved remotePlaybackHandler code to SocialViewModel for reuse. 2) LBAccessToken will be null if no value is assigned. Earlier, null was converted to empty string
1) Repository boilerplate converted to parseResponse {} function. 2) API service refactored. 3) Established helper functions to reduce boilerplate. 4) ListensViewModel and ListensScreen refactored.
1) Migrated some shared preferences to data store. 2) As a result, a lot of UI components that were dependent on shared prefs are now reactive. 3) Listens screen refactor.
1) Migrated Ui mode to datastore and removed dependency on shared preferences. 2) Polished Explore screen.
sharedTest/src/main/java/org/listenbrainz/sharedtest/utils/ResourceString.kt
Show resolved
Hide resolved
app/src/main/java/org/listenbrainz/android/service/ApiService.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/org/listenbrainz/android/ui/components/dialogs/BaseDialog.kt
Show resolved
Hide resolved
Also, the YearInMusicActivityTest seems to be breaking for me. Wonder why the CI didn't fail for this though. |
I think I may have changed some things here and there but I don't exactly know what errors you might be getting. |
1) Reverted dissolution of individual Services and adopted sharing of OkHttpClient client instead. 2) Fixed a bug where Listen's screen wasn't loading
app/src/main/java/org/listenbrainz/android/service/ApiService.kt
Outdated
Show resolved
Hide resolved
@07jasjeet can you fix the tests for this? Also, ready for review right? |
Oops didn't knew tests broke again gimme a sec. |
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.
LGTM. Great work! 💯
Needs end to end testing though. Beta should be a good place for it
Tasks