From 6c40cfa748892f6cf966d6aa06b59312516fdff4 Mon Sep 17 00:00:00 2001 From: Alexander Bakker Date: Fri, 23 May 2025 14:33:21 +0200 Subject: [PATCH] Disable PNG cruncher and PNG generation for vector drawables --- app/build.gradle | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/app/build.gradle b/app/build.gradle index dab8aa72..98c93933 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -93,6 +93,14 @@ android { } } + // Required to make the APK reproducible + aaptOptions { + cruncherEnabled = false + } + defaultConfig { + vectorDrawables.generatedDensities = [] + } + packagingOptions { // R8 doesn't remove these resources, so exclude them manually. This reduces APK size by 4MB. resources {