We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Creating a store for android/ios is fairly straightforward
//android val filesDir: String = androidContext().filesDir.path storeOf(file = "$filesDir/countries.json".toPath(), default = emptyList()) // ios val filesDir: String? = NSFileManager.defaultManager.DocumentDirectory?.relativePath requireNotNull(filesDir) { "Document directory not found" } storeOf(file = "$filesDir/countries.json".toPath(), default = emptyList())
However, for desktop we need this extra step
// desktop val filesDir: String = AppDirsFactory.getInstance() .getUserDataDir(PACKAGE_NAME, VERSION, AUTHOR) FILE_SYSTEM.createDirectories(filesDir.toPath()) storeOf(file = "$filesDir/countries.json".toPath(), default = emptyList())
Need to think of an API to bridge this gap
The text was updated successfully, but these errors were encountered:
Relates to #121
Sorry, something went wrong.
No branches or pull requests
Creating a store for android/ios is fairly straightforward
However, for desktop we need this extra step
Need to think of an API to bridge this gap
The text was updated successfully, but these errors were encountered: