Fix Layout Inspector's Compose tree for dev flavor (#8363)
Cette révision appartient à :
Parent
dd1923fe88
révision
57bba9e5ab
1 fichiers modifiés avec 5 ajouts et 1 suppressions
|
@ -113,7 +113,6 @@ android {
|
|||
"META-INF/README.md",
|
||||
"META-INF/NOTICE",
|
||||
"META-INF/*.kotlin_module",
|
||||
"META-INF/*.version",
|
||||
))
|
||||
}
|
||||
|
||||
|
@ -296,6 +295,11 @@ androidComponents {
|
|||
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
|
||||
it.packaging.resources.excludes.add("META-INF/*.version")
|
||||
}
|
||||
}
|
||||
|
||||
tasks {
|
||||
|
|
Référencer dans un nouveau ticket