File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -179,6 +179,19 @@ compose.resources {
179179 generateResClass = always
180180}
181181
182+ tasks.matching { it.name.contains(" generateComposeResClass" ) }.configureEach {
183+ doFirst {
184+ // Force consistent ordering by sorting resource directories
185+ val resourceDirs = project.file(" src/commonMain/composeResources" )
186+ .listFiles { file -> file.isDirectory && file.name.startsWith(" values" ) }
187+ ?.sortedBy { it.name }
188+
189+ // Set system property to ensure consistent processing
190+ System .setProperty(" compose.resources.processing.order" ,
191+ resourceDirs?.joinToString(" ," ) { it.name } ? : " " )
192+ }
193+ }
194+
182195tasks.matching { it.name.contains(" generateComposeResClass" ) }.configureEach {
183196 doFirst {
184197 System .setProperty(" kotlin.collections.hash.seed" , " 0" )
You can’t perform that action at this time.
0 commit comments