From 682a2d778fd2f82dba55daf71126fd5458d1fe89 Mon Sep 17 00:00:00 2001 From: Suhaib Roomy Date: Tue, 13 Feb 2024 23:43:50 +0100 Subject: [PATCH] Fix package name of generated `Res` file when project is building for JsTarget (#4295) --- .../org/jetbrains/compose/resources/ResourcesGenerator.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gradle-plugins/compose/src/main/kotlin/org/jetbrains/compose/resources/ResourcesGenerator.kt b/gradle-plugins/compose/src/main/kotlin/org/jetbrains/compose/resources/ResourcesGenerator.kt index 1d1c8081fa9..a63880fd0ec 100644 --- a/gradle-plugins/compose/src/main/kotlin/org/jetbrains/compose/resources/ResourcesGenerator.kt +++ b/gradle-plugins/compose/src/main/kotlin/org/jetbrains/compose/resources/ResourcesGenerator.kt @@ -124,7 +124,7 @@ private fun Project.configureResourceGenerator(commonComposeResourcesDir: File, val group = project.group.toString().lowercase().asUnderscoredIdentifier() append(group) if (group.isNotEmpty()) append(".") - append(project.name.lowercase()) + append(project.name.lowercase().asUnderscoredIdentifier()) append(".generated.resources") } }