Closed vanniktech closed 3 years ago
Is it useful? I've never found much need for the StringSet APIs in SharedPreferences.
The solution I find more interesting for non-primitive data is the kotlinx.serialization integration I have prototyped in #36. This would generalize much better to other simple datatypes without needing to special-case anything. Looking to probably release that in the near future as part of 0.7. Do you think that will fit your use-case? You'd be able to do something like
val stringSet by settings.serializationDelegate(SetSerializer(String.serializer()), "key")
Yup that would work too.
The serialization integration is now released in 0.7 so I'm closing this.
Implementation could look something like this:
Do you think that's a good fit?