Fix benchmark build (#1938)

(cherry picked from commit b00bbe91beb942f2ac18765be6c78b6f318cc66d)
This commit is contained in:
Cuong-Tran 2025-03-29 16:51:18 +07:00 committed by Jobobby04
parent f6b1440bf2
commit 290e8f5a1e

View File

@ -315,14 +315,6 @@ dependencies {
}
androidComponents {
beforeVariants { variantBuilder ->
// Disables standardBenchmark
if (variantBuilder.buildType == "benchmark") {
variantBuilder.enable = variantBuilder.productFlavors.containsAll(
listOf("default" to "dev"),
)
}
}
onVariants(selector().withFlavor("default" to "standard")) {
// Only excluding in standard flavor because this breaks
// Layout Inspector's Compose tree