Skip to content

Releases: makeevrserg/klibs.kstorage

KStorage - 1.5.2

10 Jun 17:03
8f1adbe
Compare
Choose a tag to compare
Merge pull request #3 from makeevrserg/dependabot/gradle/versions-56d…

KStorage - 1.5.1

05 Jun 23:01
6e99d3f
Compare
Choose a tag to compare
fix scm url

KStorage - 1.5.0

30 May 21:27
d308e38
Compare
Choose a tag to compare
Merge pull request #2 from makeevrserg/update-all

update dependencies, ci

KStorage - 1.4.0

02 May 10:24
425fca3
Compare
Choose a tag to compare
Merge pull request #1 from makeevrserg/develop

Update api

1.3.0

31 Dec 04:28
Compare
Choose a tag to compare

Minor releaase

  • add more tests
  • add delegation into StateFlowMutableStorageValueImpl to make it "decrease chance of instability"

1.2.0

28 Dec 07:44
Compare
Choose a tag to compare
  • added null -> non-null extension
class SettingsApi(private val settings: Settings) {
    class IntMutableStorageValue(
        key: String
    ) : MutableStorageValue<Int?> by MutableStorageValue(
        default = null as Int?,
        loadSettingsValue = { settings[key] },
        saveSettingsValue = { integerValue: Int? ->
            settings[key] = integerValue
        }
    )
    // Here you can convert it
    val nullableValue: MutableStorageValue<Int?> = IntMutableStorageValue("int_value")
    val nonNullableValue: MutableStorageValue<Int> = nullableValue.withDefault(15)
}

1.0.0

21 Jul 09:29
Compare
Choose a tag to compare
initial commit