An issue with resources file generation in Compose...
# multiplatform
k
An issue with resources file generation in Compose Multiplatform. I'm using following config to generate a non internal Res file for a particular module. compose.resources { publicResClass = true packageOfResClass = "app.krail.taj.resources" generateResClass = always } Working fine locally, however on CI, filebis not generating and import for resources is not resolved. I've tried gradle clean and ensured gradle cache is cleared before build but still no Res. Ideas are appreciated. Here's a PR if it helps looking at code - https://github.com/ksharma-xyz/KRAIL/pull/925 Compose.resources 55
j
That folder should not be called
commonMain/composeresources/drawable
but
commonMain/composeResources/drawable
k
Thank you! I'll try that
j
FYI: if you run on GH's hosted machines (like you do with
ubuntu-latest
) and don't explicitly call
actions/cache
(like you commented out), then running gradle
clean
has nothing to clean, as nothing's there. It seems you tried to clean the build on CI to fix this, but I think what you're running into is that locally you have a remaining cache that causes this to work, and locally you should run
clean
and then try to fix it 😉
k
Appreciate you looking at pr and sharing reviews to improve. 😀 I'll try removing cache in local and run too. Should fail 😀
j
Btw, I had a small issue in my answer: the issues seems to be that your folder is called
composeresources
while it should be
composeResources
(notice the capital
R
)
👍 1
k
wonderful it worked! Thanks again!
j
Niiice