it there some thing like SharePreference in Androi...
# multiplatform
c
it there some thing like SharePreference in Android for kmp?
m
The problem with DataStore is that they define KMP to mean either Android or iOS but nothing else.
1
✔️ 1
l
https://github.com/russhwolf/multiplatform-settings haven't used it but heard of it in a talking kotlin episode
✌️ 2
2
c
and also datastore is very bad documented..
Copy code
val Context.dataStore: DataStore<Preferences> by preferencesDataStore(name = "settings")
where does Context and preferencesDataStore come from?
m
https://github.com/russhwolf/multiplatform-settings (mentioned above) is what I use. It works for me.
c
I have use it to my project now. thank you all.✌️
e
@Marcello Galhardo do you find it is too complex to use this lib?