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

Path config with ~ on macOS seems to not work #347

Open
Simek opened this issue Mar 9, 2022 · 1 comment
Open

Path config with ~ on macOS seems to not work #347

Simek opened this issue Mar 9, 2022 · 1 comment

Comments

@Simek
Copy link
Contributor

Simek commented Mar 9, 2022

Lately, I have switched from AsyncStorage to MMKV in on of the macOS test projects, and I would like to utilize the path config, but it looks like that, when path includes tilde (~) file is not saved. Not sure if this is intended to work, but I have decided to report this anyway, so feel free to close this one or convert to feature request.

Other thing which was a bit unexpected is that you cannot use the constructor with config object, but without the id field (no fallback to default?), so for example when path and encryption field are the only present, this leads to error about missing ID.

Repro

@mrousavy
Copy link
Owner

Hey Bartosz!

  1. I'll take a look! Maybe this issue should be reported in the original MMKV repo instead?
  2. Yeah well ID cannot be default anymore since the default instance does not have encryption or custom path. So when you supply any of those, you have to use a different ID.

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

No branches or pull requests

2 participants