Skip to content

Add feature to export and import options file #553

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

Merged
merged 2 commits into from
Jun 28, 2025

Conversation

kairusds
Copy link
Member

@kairusds kairusds commented Jun 22, 2025

Tested it and it's working fine.
This also excludes sensitive preferences: installID, onlineUsername and onlinePassword

Dev build can be downloaded and tested from https://github.com/kairusds/osu-droid/releases/tag/dev1

Screenshot_2025-06-22-07-44-18-961_ru nsu ccfit zuev osuplus debug


public class ConfigBackup {

private static final Set<String> EXCLUDE_KEYS = Set.of("installID", "onlineUsername", "onlinePassword");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We really need a single source of truth for preference keys (i.e., an enum) sooner than later to avoid having these all over the place...

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

True that

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Kinda late but "version" is also a key that should be ignored, for more information check UpdateManager.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Kinda late but "version" is also a key that should be ignored, for more information check UpdateManager.

Ah, I completely missed that

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The key doesn't seem to be included on the exported options file but I'll add it as an exclude, just in case

@Rian8337 Rian8337 merged commit 24caa40 into osudroid:master Jun 28, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants