carbaj0
05/24/2024, 5:32 AMAlejandro Serrano.Mena
05/24/2024, 5:36 AMcarbaj0
05/24/2024, 5:38 AMcarbaj0
05/24/2024, 6:20 AMdependencies {
// ksp(libs.arrow.optics.ksp)
add("kspCommonMainMetadata", libs.arrow.optics.ksp)
}
kotlin {
sourceSets.commonMain {
kotlin.srcDir("build/generated/ksp/metadata")
}
...
}
tasks.withType<org.jetbrains.kotlin.gradle.dsl.KotlinCompile<*>>().configureEach {
if (name != "kspCommonMainKotlinMetadata") {
dependsOn("kspCommonMainKotlinMetadata")
}
}
This is working for me at the moment, but I don't know to what extent it is correct.Alejandro Serrano.Mena
05/24/2024, 6:47 AMVivek Choudhary
05/24/2024, 7:43 PMVivek Choudhary
05/24/2024, 8:10 PMClass 'AppDatabase_Impl' is not abstract and does not implement abstract base class member 'clearAllTables'.
Getting a new error after adding above lines. Any idea?carbaj0
05/25/2024, 3:41 AM@Database(entities = [BoxerEntity::class, VoteEntity::class], version = 4)
abstract class AppDatabase : RoomDatabase(), DB {
abstract fun voteDao(): VoteDao
abstract fun boxerDao(): BoxerDao
override fun clearAllTables(): Unit {}
}
//temporal hack
interface DB {
fun clearAllTables(): Unit {}
}
I guess you are trying to use Room.
For now I have managed to make it work with this hack 😅