feat(android): add Simkl authentication, scrobbling, and sync support - #555
Closed
Himanth-reddy wants to merge 4 commits into
Closed
feat(android): add Simkl authentication, scrobbling, and sync support#555Himanth-reddy wants to merge 4 commits into
Himanth-reddy wants to merge 4 commits into
Conversation
This was referenced Aug 11, 2026
Collaborator
Author
|
Superseded by #559 (from Himanth-reddy:simkl/android into main) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary of Changes
This PR adds native Android & Android TV support for Simkl tracking, scrobbling, authentication, and watch history synchronization.
1. Retrofit API & Models (
SimklApi.kt)SimklApiinterface with DTO models for PIN authentication, scrobble events, activities, watched history, and watchlists.provideSimklApiinAppModule.kt.2. Decoupled Architecture (
com.arflix.tv.data.repository.simkl.*)SimklAuthManager: Manages PIN device code auth, token storage in DataStore (simkl_access_token), and session disconnects.SimklScrobbler: Handles real-time scrobbling (scrobbleStart,scrobblePause,scrobbleStop) and progress calculation with >=80% completion thresholding.SimklSyncService: Manages watched history fetching, delta updates via/sync/activities, and watchlist modifications.SimklRemoteProvider: Adapter implementingRemoteSyncProvider.3. Provider Resolution & Settings UI
SyncProviderenum withSIMKL.SimklRemoteProviderintoRemoteSyncManager.SettingsViewModel.kt.4. Automated Tests
SimklIntegrationTest.ktverifying PIN auth polling, scrobble payload building, and sync logic.Testing & Verification
./gradlew compileSideloadDebugKotlinsucceeded.SimklIntegrationTest.ktpassed.