Lamberto Basti
12/22/2024, 5:57 PMmarlonlom
12/22/2024, 11:27 PMLamberto Basti
12/23/2024, 2:12 PM// build.gradle.kts
dependencies {
implementation("com.github.lamba92:kotlin-document-store-leveldb:1.0.0")
}
Then in your app:
val dbPath = context.getDatabasePath("leveldb")
.toPath()
.createDirectories()
val store = LevelDB.open(dbPath.absolutePathString())
val db = KotlinDocumentStore(store)
I will update the documentation for Android!