https://kotlinlang.org logo
#getting-started
Title
# getting-started
s

Sean Proctor

02/18/2022, 9:43 AM
I'm currently porting a desktop application that uses
java.util.prefs.Preferences
to Kotlin. Does anyone know of a decent wrapper to
Preferences
or a Kotlin alternative? russhwolf/multiplatform-settings adds suspend/flow wrappers. I'm looking for an easy way to get/put lists, maps, and objects to preferences. Android has really polluted the Kotlin search space. 90% of the results are talking about SharedPreferences or DataStore.
Sometimes asking a question leads to the answer even when there's no response. I looked at multiplatform-settings more and noticed an issue to support DataStore on desktop. So I can just use DataStore.
👌 1
4 Views