revanced-manager icon indicating copy to clipboard operation
revanced-manager copied to clipboard

feat: Support multiple patches sources

Open oSumAtrIX opened this issue 11 months ago • 2 comments

Feature description

Currently, ReVanced Manager uses API v4 to retrieve patches from a single source. Adding support for multiple patches sources would allow users to simultaneously consume patches from various APIs. For simplicity, the settings could be restructured to accommodate this functionality. For example, an "Additional patches" field could be added next to the current "API URL" option in the settings.

ReVanced Manager would then query the endpoint https://api.revanced.app/v4/patches/version to check for patch updates and, if available, download them from https://api.revanced.app/v4/patches. The patch loader would process a list of patch files instead of just one, combining patches from all provided sources into a single list of patches. From here on, everything else works the same since it's a single list like before.

Patches card on the home may display multiple cards, one for each patches source and the patch selector screen since patches from multiple sources will have different versions.

Motivation

With this feature, users can use multiple sources at a time. For example, patches dedicated to specific apps can be used next to other patches dedicated to other apps.

Acknowledgements

  • [x] I have checked all open and closed feature requests and this is not a duplicate.
  • [x] I have chosen an appropriate title.
  • [x] The feature request is only related to ReVanced Manager.

oSumAtrIX avatar Nov 12 '24 02:11 oSumAtrIX