When I migrated from KAPT to KSP for Room with ``...
# room
s
When I migrated from KAPT to KSP for Room with
Copy code
extensions.configure<KspExtension> {
    arg("room.generateKotlin", "true")
}
, it generates the AutoMigration classes as internal kotlin classes. the unit tests are all failing because, the internal classes could not be accessed from the unit tests. Is there a way to generate public AutoMigration classes instead of internal classes? What is the solution for this?
It turns out that we don't have to specify the AutoMigration classes anymore in the runMigrationsAndValidate method. It is applied automatically to the database just like it is done in the real application database.
I have detailed this here