Skip to content

feat(settings): add "Refresh Addons" to sync latest changes (#404) - #511

Merged
ProdigyV21 merged 3 commits into
ProdigyV21:mainfrom
Himanth-reddy:feat/refresh-addons-404
Aug 9, 2026
Merged

feat(settings): add "Refresh Addons" to sync latest changes (#404)#511
ProdigyV21 merged 3 commits into
ProdigyV21:mainfrom
Himanth-reddy:feat/refresh-addons-404

Conversation

@Himanth-reddy

Copy link
Copy Markdown
Collaborator

Fixes #404

Summary

Adds a "Refresh Addons" feature to allow users to sync latest addon changes for their active profile without restarting the application or profile.

Key Changes

  • StreamRepository:
    • refreshInstalledAddons() re-fetches and hydrates manifests for all installed custom Stremio addons.
    • Preserves user properties (isEnabled, isInstalled, id, ordering).
    • Invalidates in-memory caches (streamResultCache, resolvedStreamCache, streamAddonsCache) and removes the active profile's persisted disk cache bundle.
    • Returns AddonRefreshReport(refreshed, failed).
  • SettingsViewModel:
    • refreshAddons() pulls remote cloud profile snapshot (pushPendingLocalFirst = false) when signed in.
    • Refreshes installed addons and resyncs catalogs via catalogRepository.syncAddonCatalogs().
    • Posts toast feedback with refreshed and failed counts.
  • UI Layer:
    • Mobile: Gesture-driven Pull-to-Refresh on the Addons screen featuring a stock circular progress loader and small italic "Pulling latest addon" text.
    • TV: Focusable "Refresh Addons" button row before "Add Addon" with D-Pad navigation.

Verification

  • Verified compilation with ./gradlew assembleSideloadDebug (BUILD SUCCESSFUL).
  • Installed and tested on Android emulator (127.0.0.1:6555).

Himanth-reddy and others added 3 commits August 4, 2026 21:40
…digyV21#404)

- Add refreshInstalledAddons() in StreamRepository to re-fetch custom addon manifests, clear stream caches, and preserve user preferences.
- Add refreshAddons() in SettingsViewModel to pull remote cloud profile state, refresh addons, and resync catalogs.
- Mobile UI: Add gesture-based pull-down refresh with stock loader and small italic 'Pulling latest addon' text.
- TV UI: Add focusable 'Refresh Addons' button row before 'Add Addon'.

Closes ProdigyV21#404
@ProdigyV21
ProdigyV21 merged commit d8bf1df into ProdigyV21:main Aug 9, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature Request] Add "Refresh Addons" button to sync latest changes

2 participants