Skip to content

Commit

Permalink
[gradle] Create static android assets directory if it doesn't exist
Browse files Browse the repository at this point in the history
  • Loading branch information
terrakok committed Jul 12, 2024
1 parent 5d8183f commit 9a9602d
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 9a9602d

Please sign in to comment.