Skip to content
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

bug: default settings don't update on updates #1222

Closed
4 tasks done
Ushie opened this issue Sep 1, 2023 · 7 comments
Closed
4 tasks done

bug: default settings don't update on updates #1222

Ushie opened this issue Sep 1, 2023 · 7 comments
Labels
Bug report Something isn't working

Comments

@Ushie
Copy link
Member

Ushie commented Sep 1, 2023

Type

Error while running the manager

Bug description

If a default setting, like the default API URL changes in an update, installing the new update doesn't update it

Steps to reproduce

  1. Install ReVanced Manager v1.6.1 (clean install)
  2. Check the API URL, it should be releases.revanced.app
  3. Update to ReVanced Manager v1.9.4 from https://revanced.app/download (in-app updates are broken due to releases.revanced.app not functioning)
  4. Check the API URL, it should be api.revanced.app but instead it's releases.revanced.app

Acknowledgments

  • I have searched the existing issues; this is new and no duplicate or related to another open issue.
  • I have written a short but informative title.
  • I properly filled out all of the requested information in this issue.
  • The issue is solely related to ReVanced Manager and not caused by patches.
@TheAabedKhan
Copy link
Member

If we decide what the API should be, then why are we even allowing the users to modify it? If we remove the ability to modify it, then we can control it via updates.

@Ushie
Copy link
Member Author

Ushie commented Sep 1, 2023

then why are we even allowing the users to modify it?

Because the entirety of ReVanced is built in a way that is independent of us, a few extra settings go a long way

@TheAabedKhan
Copy link
Member

OK. So, updating the settings only if they are set to default, right?

@Ushie
Copy link
Member Author

Ushie commented Nov 17, 2023

Yes

@Ushie
Copy link
Member Author

Ushie commented Nov 17, 2023

Essentially, the API URL should be a global variable in the app, and the default value of the API URL should use that variable instead of duplicate it, if API URL is equal to the variable after transformation, it should stay a reference to the variable when applying changes

@oSumAtrIX
Copy link
Member

A migration function has been introduced. Does this suffice?

@validcube
Copy link
Member

🍜 This issue should been resolved by the release of v1.19.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug report Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants