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
484 stars 15 forks source link

Add kstore-file and kstore-storage modules #31

Closed xxfast closed 1 year ago

xxfast commented 1 year ago

Addresses #29. This is a big migration. I'm splitting some of the factory methods to two modules

  1. kstore-file for targets that have a file system (pretty much all the targets except for js { browser() })
  2. kstore-storage for targets that have a storage provider (for js { browser() })

⚠️ Breaking changes!

github-actions[bot] commented 1 year ago

Code Coverage

File Coverage [98.65%] :white_check_mark:
kstore-file/src/androidMain/kotlin/io/github/xxfast/kstore/file/utils/FileSystem.kt 100.00% :white_check_mark:
kstore-file/src/appleMain/kotlin/io/github/xxfast/kstore/file/utils/FileSystem.kt 100.00% :white_check_mark:
kstore-file/src/commonMain/kotlin/io/github/xxfast/kstore/file/FileCodec.kt 94.12% :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/KFolder.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/commonMain/kotlin/io/github/xxfast/kstore/file/utils/FileSystem.kt 100.00% :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/KFolderTests.kt 100.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:
kstore-file/src/desktopMain/kotlin/io/github/xxfast/kstore/file/utils/FileSystem.kt 100.00% :white_check_mark:
kstore-file/src/jsMain/kotlin/io/github/xxfast/kstore/file/utils/FileSystem.kt 100.00% :white_check_mark:
kstore-file/src/linuxMain/kotlin/io/github/xxfast/kstore/file/utils/FileSystem.kt 100.00% :white_check_mark:
kstore-file/src/windowsMain/kotlin/io/github/xxfast/kstore/file/utils/FileSystem.kt 100.00% :white_check_mark:
kstore/src/commonMain/kotlin/io/github/xxfast/kstore/Json.kt 100.00% :white_check_mark:
kstore/src/commonMain/kotlin/io/github/xxfast/kstore/KStore.kt 100.00% :white_check_mark:
kstore/src/commonTest/kotlin/io/github/xxfast/kstore/KStoreTests.kt 100.00% :white_check_mark:
kstore/src/commonTest/kotlin/io/github/xxfast/kstore/TestCodec.kt 100.00% :white_check_mark:
kstore/src/commonTest/kotlin/io/github/xxfast/kstore/TestModels.kt 78.57% :x:
kstore/src/commonTest/kotlin/io/github/xxfast/kstore/extensions/KCachedStoreTests.kt 100.00% :white_check_mark:
Total Project Coverage 98.14% :white_check_mark: