Browse Source

[gradle] Create static android assets directory if it doesn't exist

pull/5100/head v1.7.0-dev1727
Konstantin Tskhovrebov 4 months ago
parent
commit
9a9602d10f
  1. 4
      gradle-plugins/compose/src/main/kotlin/org/jetbrains/compose/resources/AndroidResources.kt

4
gradle-plugins/compose/src/main/kotlin/org/jetbrains/compose/resources/AndroidResources.kt

@ -53,7 +53,9 @@ internal fun Project.configureAndroidComposeResources(
}
//https://issuetracker.google.com/348208777
variant.sources.assets?.addStaticSourceDirectory(variantAssetsDir.get().asFile.path)
val staticDir = variantAssetsDir.get().asFile
staticDir.mkdirs()
variant.sources.assets?.addStaticSourceDirectory(staticDir.path)
tasks.configureEach { task ->
if (task.name == "merge${variant.name.uppercaseFirstChar()}Assets") {
task.dependsOn(copyVariantAssets)

Loading…
Cancel
Save