Skip to content

Commit

Permalink
Configure explicit dependency on the copyFonts task to fix a build
Browse files Browse the repository at this point in the history
  • Loading branch information
terrakok committed Feb 6, 2024
1 parent 8f42d8d commit 61c7f5c
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package org.jetbrains.compose.resources

import com.android.build.api.variant.AndroidComponentsExtension
import com.android.build.gradle.BaseExtension
import com.android.build.gradle.tasks.MergeSourceSetFolders
import com.android.build.gradle.internal.tasks.AndroidVariantTask
import org.gradle.api.Project
import org.gradle.api.provider.Provider
import org.gradle.api.tasks.Copy
Expand Down Expand Up @@ -39,4 +39,7 @@ internal fun Project.configureAndroidResources(
}
)
}
//fixme: it seems like a problem in AGP, so dirty hack now
//https://github.com/JetBrains/compose-multiplatform/issues/4085
tasks.matching { it is AndroidVariantTask }.configureEach { it.dependsOn(copyFonts) }
}

0 comments on commit 61c7f5c

Please sign in to comment.