So I am doing a test, incorporating compose multi...
# gradle
t
So I am doing a test, incorporating compose multi-platform in my shared code. The only I have is that I define watchOS targets/sourcesets, but since it is not supported by compose I have to disable it. One option is to create a new module, but that seems like a lot of work, and then the imports between modules seems like it would get messy. So another thought I had: if I could detect whether watchOS is currently being build and not include the compose bits in that case. For example:
Copy code
val commonMain by getting {
            dependencies {

if (currentTarget != watchOS) {
                implementation(compose.runtime)
                implementation(compose.foundation)
                implementation(compose.material)
                implementation(compose.material3)
}
            }
        }
I am no expert in gradle, so I come here. Would this be possible? That is, any way to check for watchos and not include those dependencies? Thank you.