Skip to content

Conversation

@BoD
Copy link
Collaborator

@BoD BoD commented Oct 21, 2025

Fix for #164

@BoD BoD requested a review from martinbonnin as a code owner October 21, 2025 14:24

PUT_CHANGELOG_HERE

- Database files are now stored in the `cache` directory by default on Android (#164)
Copy link
Contributor

Choose a reason for hiding this comment

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

Probably worth and explicit warning that it's going to lose all the data.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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


else -> {
// Old versions of the library used to store the database in the database directory.
// If such file exists, use it, otherwise, use the cache directory.
Copy link
Contributor

@rohandhruva rohandhruva Oct 23, 2025

Choose a reason for hiding this comment

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

For users who would prefer to switch to using the cache directory, do you think it's possible to provide a migration path? (understanding that you'll lose all the existing data)

Copy link
Contributor

Choose a reason for hiding this comment

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

I think switching to the cache directory should become the default (with a big warning in the release notes). Users that want to keep the old one could use a dedicated overload that takes a path maybe?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

You can pass an absolute path for name, so I think that's enough to do that?

Copy link
Contributor

Choose a reason for hiding this comment

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

Works for me!

@BoD BoD merged commit 8755182 into main Oct 27, 2025
2 of 3 checks passed
@BoD BoD deleted the use-cache-directory branch October 27, 2025 13:44
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.

4 participants