I have an android target in my multiplatform build...
# multiplatform
e
I have an android target in my multiplatform build, and each module spams the logs with:
Copy code
The following Kotlin source sets were configured but not added to any Kotlin compilation:
 * androidAndroidTestRelease
 * androidTestFixtures
 * androidTestFixturesDebug
 * androidTestFixturesRelease
You can add a source set to a target's compilation by connecting it with the compilation's default source set using 'dependsOn'.
See <https://kotlinlang.org/docs/reference/building-mpp-with-gradle.html#connecting-source-sets>
What do I need to do to make that stop getting logged?
👀 1
s
this is a good question. These annoyed me so much that I added something like:
Copy code
allprojects {
    afterEvaluate {   project.extensions.findByType<org.jetbrains.kotlin.gradle.dsl.KotlinMultiplatformExtension>()?.let { kmpExt ->
            kmpExt.sourceSets.removeAll { it.name == "androidAndroidTestRelease" || it.name.contains("Fixtures") }
        }
    }
to my gradle project just to hack these source sets away. A better solution would be to figure out what fixtures is and not attach the source set to begin with, so I hope you get some more answers to your question.
1
j
Hey @eygraber, thanks for sharing! Any updates on this? I have similar issues..
e
No update. I've been using the snippet provided above and it's working fine for me.
👍 1
@Sebastian Sellmair [JB] is something that should be filed with AGP?