-
Notifications
You must be signed in to change notification settings - Fork 0
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
Add initial storage manager #14
Add initial storage manager #14
Conversation
4dbeb00
to
a61307a
Compare
val dataStore: DataStore<Preferences> = store(context, "default") | ||
|
||
companion object { | ||
private const val FILENAME_PREFIX = "datastore_" |
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 the prefix and the encryption key, could we use something sprucekit specific to avoid name clashes when someone imports this library into their application? Maybe:
sprucekit/datastore/
directories to store the files in?sprucekit-datastore
for the encryption key?
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.
@todd-spruceid WDYT doing something similar in mobile-sdk-swift for consistency?
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'd be inclined to suggest just sprucekit
for the directory, but regardless, it probably makes sense to do the same in -swift
, mostly for ease of maintenance.
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.
Some conflicts need resolving, otherwise LGTM.
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.
There's a list()
being added to the protocol (see spruceid/mobile-sdk-rs#24) which will affect this code later.
Signed-off-by: Tiago Nascimento <[email protected]>
Signed-off-by: Tiago Nascimento <[email protected]>
e591d89
to
c3a10d5
Compare
Rebased onto main and fixed one reference to |
No description provided.