-
Notifications
You must be signed in to change notification settings - Fork 5
Use the cache directory by default #242
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
Conversation
|
|
||
| PUT_CHANGELOG_HERE | ||
|
|
||
| - Database files are now stored in the `cache` directory by default on Android (#164) |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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. |
There was a problem hiding this comment.
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)
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works for me!
Fix for #164