suparngp / kotlin-multiplatform-projects

Kotlin Multiplatform projects.
https://kmpdocs.suparnatural.com
MIT License
131 stars 9 forks source link

When initialize DiskStore, there is error: "Cannot access class 'com.supernatural.core.fs.PathComponent'. Check your module classpath for missing or conflicting dependencies" #90

Open ejeksenov opened 3 years ago

ejeksenov commented 3 years ago

Describe the bug When initialize DiskStore like that: val diskStore = DiskStore(true) there is error: "Cannot access class 'com.supernatural.core.fs.PathComponent'. Check your module classpath for missing or conflicting dependencies". I have checked caching without persistent storage, and it's working fine. But I need to persist data objects to device storage.

Stacktrace I have 3 modules in my project: app(Android) bff-ui(Android) sdk(kotlin multiplatform) - all requests to the backend is processing here. And persisting data objects to persistent store here too.

Version 1.0.8

Platforms affected:

suparngp commented 3 years ago

I think this is happening because cache is not upgraded like the other packages due to a couple of issues in the build process. https://github.com/suparngp/kotlin-multiplatform-projects/blob/master/Changelog.MD#v1012

I am traveling at the moment, so it will take some time to fix this. Feel free to raise a PR.