diff --git a/app/build.gradle.kts b/app/build.gradle.kts index 4f1c5dd7c..ecae90f18 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -99,7 +99,6 @@ android { "META-INF/README.md", "META-INF/NOTICE", "META-INF/*.kotlin_module", - "META-INF/*.version", )) } @@ -306,6 +305,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 {