add SharedPreferencesKeyValueRepo
This commit is contained in:
parent
2ba5c97709
commit
7990b21cc5
|
@ -2,6 +2,10 @@
|
|||
|
||||
## 0.10.5
|
||||
|
||||
* `Repos`
|
||||
* `Android`:
|
||||
* New function `SharedPreferencesKeyValueRepo`
|
||||
|
||||
## 0.10.4
|
||||
|
||||
* `Versions`:
|
||||
|
|
|
@ -160,3 +160,9 @@ class KeyValueStore<T : Any> internal constructor (
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
inline fun <T : Any> SharedPreferencesKeyValueRepo(
|
||||
context: Context,
|
||||
name: String = "default",
|
||||
cacheValues: Boolean = false
|
||||
) = context.keyValueStore<T>(name, cacheValues)
|
||||
|
|
Loading…
Reference in New Issue