Lukas K-G
06/25/2024, 4:49 AMCLOVIS
06/25/2024, 7:05 AMandroid.sourceSets.configureEach {
if (!name.startsWith("test")) {
kotlin.srcDirs = emptyList()
}
}
I can't test it at the moment, but in theory it should make the Kotlin plugin unable to see your production code.
You may also need to add an exclusion for the standard library to avoid adding a new dependencyLukas K-G
06/25/2024, 7:17 AM