russhwolf / multiplatform-settings

A Kotlin Multiplatform library for saving simple key-value data
Apache License 2.0
1.6k stars 67 forks source link

Unresolved reference: JsSettings after update to 1.0.0 #146

Closed sebleclerc closed 1 year ago

sebleclerc commented 1 year ago

I have a KotlinJS / Compose for Web module which I just updated from Multiplatform settings 0.9 to 1.0.0 Since then, I have that unresolved reference error. This is (part of) my build.gradle file:

kotlin {
  js(IR) {
    browser()
    binaries.executable()
  }

  sourceSets {
    val jsMain by getting {
      dependencies {
        [...]

        implementation(Deps.multiplatformSettings)
      }
    }

    val jsTest by getting
  }
}

And then I init it this way:

private val settings: Settings = JsSettings()

It was part of a broader dependency updates but only rolling back to version 0.9 fixed that.

russhwolf commented 1 year ago

JsSettings has been renamed StorageSettings. There were a number of breaking changes in 1.0.0 as described in the changelog

sebleclerc commented 1 year ago

Unfortunately, I don't see anything related to JsSettings or StorageSettings in the CHANGELOG and JsSettings is still mentioned in the README so it got me confused 😅

But the renaming did the trick! Thanks! 😄

russhwolf commented 1 year ago

Oh sorry. I accidentally left that out and didn't notice.

sebleclerc commented 1 year ago

No worries! I got it all settled so it's all good! 😄