You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I would like to have multiplatform resources only in my commonTest source set where the dependency on compose.components.resources is only added in commonTest like:
val commonTest by getting {
dependencies {
implementation(compose.components.resources)
}
}
This does not work and the Res is not generated. I have to add implementation(compose.components.resources) in commonMain for Res to be generated.
Versions
Kotlin version*: 1.9.22
Compose Multiplatform version*: 1.6.0
To Reproduce
Add resources to commonTest/composeResources (not commonMain) and set:
val commonTest by getting {
dependencies {
implementation(compose.components.resources)
}
}
Expected behavior Res class is generated for commonTest only
The text was updated successfully, but these errors were encountered:
Describe the bug
I would like to have multiplatform resources only in my
commonTest
source set where the dependency oncompose.components.resources
is only added incommonTest
like:This does not work and the
Res
is not generated. I have to addimplementation(compose.components.resources)
incommonMain
forRes
to be generated.Versions
To Reproduce
Add resources to
commonTest/composeResources
(notcommonMain
) and set:Expected behavior
Res
class is generated forcommonTest
onlyThe text was updated successfully, but these errors were encountered: