xxfast / KStore

A tiny Kotlin multiplatform library that assists in saving and restoring objects to and from disk using kotlinx.coroutines, kotlinx.serialisation and kotlinx.io
https://xxfast.github.io/KStore/
Apache License 2.0
470 stars 15 forks source link

Unresolved reference: storeOf #79

Closed davcres closed 8 months ago

davcres commented 8 months ago

I have the dependency in the commonMain: api("io.github.xxfast:kstore:0.7.1")

Then I try to create an instance of KStore: val store: KStore<UserEntity> = storeOf(filePath = "path/to/my_cats.json")

But the reference tos storeOf can´t be found.

xxfast commented 8 months ago

Hi. Thanks for the issue.

File based stores are now part of kstore-file artifacts as of 0.6.0

implementation("io.github.xxfast:kstore-file:0.7.1")

Full documentation on installation here

Full documentation on creating a store with platform paths here

davcres commented 8 months ago

Thanks!