Migrate kvstore to kotlin (#5973)

* Get good test around the basic KvStore before starting conversion

* Converted BasicKvStore to kotlin and removed dead code

* Converted JsonKvStore to kotlin

---------

Co-authored-by: Nicolas Raoul <nicolas.raoul@gmail.com>
This commit is contained in:
Paul Hawke 2024-11-28 23:01:29 -06:00 committed by GitHub
parent d6c4cab207
commit dac3657536
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 562 additions and 320 deletions

View file

@ -62,7 +62,7 @@ class SessionManager @Inject constructor(
fun forceLogin(context: Context?) =
context?.let { LoginActivity.startYourself(it) }
fun getPreference(key: String?): Boolean =
fun getPreference(key: String): Boolean =
defaultKvStore.getBoolean(key)
fun logout(): Completable = Completable.fromObservable(