https://kotlinlang.org logo
Title
f

Francis Mariano

03/06/2023, 2:34 PM
just a comment :
"org.jetbrains.compose.components:components-resources"
works with:
sourceSets {
    named("main") {
        resources.srcDir("src/commonMain/resources")
    }
}
but not with:
sourceSets["main"].res.srcDirs("src/commonMain/resources")
j

Javier

03/06/2023, 2:43 PM
Are you sure the first one is top level
sourceSets
? Or it is inside
kotlin
block?
kotlin {
    sourceSets { ... }
}
res
is not only for Android resources?
f

Francis Mariano

03/06/2023, 2:57 PM
both of them inside android { ... }
r

russhwolf

03/06/2023, 2:59 PM
res
and
resources
are not the same thing
f

Francis Mariano

03/06/2023, 3:03 PM
resources: The Java-style resources for this source-set res: The Android Resources directory for this source-set.