Confirming `room.incremental` flag should have no ...
# ksp
r
Confirming
room.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
Copy code
android {
  defaultConfig {
    javaCompileOptions {
      annotationProcessorOptions {
        room {
          schemaLocationDir.set(file("schemas"))
        }
        arguments += [
          "room.incremental": "true"
        ]
      }
    }
  }
}
to just
Copy code
ksp {
    arg("room.schemaLocation", "schemas")
}
a
Yes, you can just use the ksp extension. However, from Room
2.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.
r
Yeah, i realised later i can just wrap it inside
room/Extension
Something like
Copy code
android {
  defaultConfig {
     room {
          schemaLocationDir.set(file("schemas"))
        }
  }
}
Thanks you!