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

Refactor kstore-file api to remove string filePaths #69

Closed xxfast closed 8 months ago

xxfast commented 8 months ago

With this change, I'm shifting the responsibility of managing the file from the library to the user.

github-actions[bot] commented 8 months ago

Code Coverage

File Coverage [97.96%] :white_check_mark:
kstore-file/src/commonMain/kotlin/io/github/xxfast/kstore/file/FileCodec.kt 92.86% :white_check_mark:
kstore-file/src/commonMain/kotlin/io/github/xxfast/kstore/file/KStore.kt 100.00% :white_check_mark:
kstore-file/src/commonMain/kotlin/io/github/xxfast/kstore/file/extensions/KListStore.kt 100.00% :white_check_mark:
kstore-file/src/commonMain/kotlin/io/github/xxfast/kstore/file/extensions/KVersionedStore.kt 93.75% :white_check_mark:
kstore-file/src/commonTest/kotlin/io/github/xxfast/kstore/file/FileCodecTests.kt 100.00% :white_check_mark:
kstore-file/src/commonTest/kotlin/io/github/xxfast/kstore/file/TestModels.kt 90.00% :white_check_mark:
kstore-file/src/commonTest/kotlin/io/github/xxfast/kstore/file/extensions/KListStoreTests.kt 100.00% :white_check_mark:
kstore-file/src/commonTest/kotlin/io/github/xxfast/kstore/file/extensions/KVersionedStoreTests.kt 98.78% :white_check_mark:
Total Project Coverage 98.34% :white_check_mark: