Skip to content

Commit

Permalink
Merge pull request #451 from qdsfdhvh/bugfix/fix_generate_res
Browse files Browse the repository at this point in the history
compileOnly compose.components.resources in extensions
  • Loading branch information
qdsfdhvh committed Feb 15, 2024
2 parents 33c798d + a1d6add commit 030a9e3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion extension/compose-resources/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,10 @@ kotlin {
commonMain {
dependencies {
implementation(projects.imageLoader)
// implementation compose resources will auto enable generate res task, so here use compileOnly
// https://github.com/JetBrains/compose-multiplatform/blob/master/gradle-plugins/compose/src/main/kotlin/org/jetbrains/compose/resources/ResourcesGenerator.kt#L143
@OptIn(org.jetbrains.compose.ExperimentalComposeLibrary::class)
implementation(compose.components.resources)
compileOnly(compose.components.resources)
}
}
}
Expand Down

0 comments on commit 030a9e3

Please sign in to comment.