From 7fb64261d2b2bc65b429bf66f6528a739d1b459d Mon Sep 17 00:00:00 2001 From: Luca Stefani Date: Sun, 3 Nov 2024 19:52:00 +0100 Subject: [PATCH] Twelve: Enable code & resource shrinking in gradle too Change-Id: Ic214eba55c6d57f97bbcc625d234537905c6f6d5 --- app/build.gradle.kts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/build.gradle.kts b/app/build.gradle.kts index 5f26b414..ad5fd207 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -48,7 +48,12 @@ android { buildTypes { release { - isMinifyEnabled = false + // Enables code shrinking, obfuscation, and optimization. + isMinifyEnabled = true + + // Enables resource shrinking. + isShrinkResources = true + proguardFiles( getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro"