Skip to content

Commit

Permalink
[gradle] Fix task configuration (use configureEach instead all).
Browse files Browse the repository at this point in the history
Fix #5061
  • Loading branch information
terrakok committed Jul 8, 2024
1 parent f01f195 commit f86d94b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ internal fun Project.configureAndroidAssetsForPreview() {

if (androidComponents.pluginVersion >= agp_8_1_0) {
// addGeneratedSourceDirectory doesn't mark the output directory as assets hence AS Compose Preview doesn't work
tasks.all { task ->
tasks.configureEach { task ->
if (task.name == kgpCopyAssetsTaskName) {
task.outputs.files.forEach { file ->
addStaticSourceDirectory(file.path)
Expand Down

0 comments on commit f86d94b

Please sign in to comment.