Closed HylkeB closed 1 year ago
Not sure if you've solved this already, but I think I had the same issue and have found a workaround for it.
kotlin {
// ...
sourceSets {
// ...
val commonTest by getting {
dependencies {
// ...
}
kotlin.srcDir("${project.buildDir}/generated/ksp/android/androidUnitTestDebug/kotlin")
}
}
}
It is very similar to the workaround described here, and mimics what the plugin does, just with the new source layout.
Hope this helps!
Fix released in v1.14.0.
When using the latest version of MocKMP (version 1.12.0) combined with kotlin version 1.8.0, I got the following warning:
After changing that, and replacing androidTest for androidUnitTest in my gradle and folder names, MocKMP no longer properly generates the mocks. (probably in the wrong v1 sourceset location or something like that).