Anyone got any favorite multiplatform libraries th...
# multiplatform
a
Anyone got any favorite multiplatform libraries that wrap shared prefs on Android and the iOS equivalent?
m
a
So that one looked overcomplicated lol
even their sample seemed overwrought
You used in an app?
c
What’s complicated about it? Multiplatform-Settings is about as simple as a key-value storage library can get. I’ve used it in many apps, and have never had any issues. The documentation looks like a lot, but that’s just because it’s a rare case of an OSS library that’s actually documented well 😅 For the simplest use cases, use the no-arg module. The one dependency and the following snippet (taken from the docs) is all you need
Copy code
val settings: Settings = Settings()
settings.putInt("key", 3)
settings["key"] = 3
👍 1
a
Hah, thanks! I guess that's on me; when I see a wall o' text I tend to "tune out"
I'm glad others aren't so lazy
j