Hey! Check out <kotlin.document.store>. Any feedba...
# android
l
Hey! Check out kotlin.document.store. Any feedback would be greatly appreciated! kotlin.documen.store is a fast NoSql document store for Kotlin Multiplatform, originally created for JetBrains/package-search-intellij-plugin for a fast and reliable offline cache, evolved for all KMP developers 🚀
m
How to use it in android-only apps?
l
The instructions are partially on the readme, add the dependency:
Copy code
// build.gradle.kts
dependencies {
    implementation("com.github.lamba92:kotlin-document-store-leveldb:1.0.0")
}
Then in your app:
Copy code
val dbPath = context.getDatabasePath("leveldb")
  .toPath()
  .createDirectories()
val store = LevelDB.open(dbPath.absolutePathString())
val db = KotlinDocumentStore(store)
I will update the documentation for Android!
K 1