From 57bba9e5ab626b38fb3154fdfd67516b8b029915 Mon Sep 17 00:00:00 2001 From: stevenyomi <95685115+stevenyomi@users.noreply.github.com> Date: Sun, 30 Oct 2022 23:42:06 +0800 Subject: [PATCH] Fix Layout Inspector's Compose tree for dev flavor (#8363) --- app/build.gradle.kts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/build.gradle.kts b/app/build.gradle.kts index 28c1aed82..7496d41dc 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -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 {