ritesh
02/10/2024, 4:42 PMroom.incremental
flag should have no affect in ksp - it should be removed? I believe it was added for java incremental processing, for ksp migration it should be removed.
And any flag passed to java annotation processor should be move to ksp block
From
android {
defaultConfig {
javaCompileOptions {
annotationProcessorOptions {
room {
schemaLocationDir.set(file("schemas"))
}
arguments += [
"room.incremental": "true"
]
}
}
}
}
to just
ksp {
arg("room.schemaLocation", "schemas")
}
Anselmo Alexandre
02/10/2024, 5:01 PM2.6.0 and above
, it’s recommended that you use the room
extension to configure the location where you want Room to write database schemas.ritesh
02/10/2024, 5:02 PMroom/Extension
Something like
android {
defaultConfig {
room {
schemaLocationDir.set(file("schemas"))
}
}
}
Thanks you!