From fd38d2768ea40ba4811f44c05c2976bc19392085 Mon Sep 17 00:00:00 2001 From: Nishant Mishra Date: Mon, 8 Sep 2025 19:06:15 +0530 Subject: [PATCH] build: Enable R8 to significantly reduce apk size Also disable obfuscation to maintain reproducible builds --- app/build.gradle.kts | 3 ++- app/proguard-rules.pro | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/app/build.gradle.kts b/app/build.gradle.kts index 090bdcb..d28b7bd 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -41,7 +41,8 @@ android { buildTypes { release { - isMinifyEnabled = false + isMinifyEnabled = true + isShrinkResources = true proguardFiles( getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro" ) diff --git a/app/proguard-rules.pro b/app/proguard-rules.pro index 481bb43..f5fb65b 100644 --- a/app/proguard-rules.pro +++ b/app/proguard-rules.pro @@ -18,4 +18,6 @@ # If you keep the line number information, uncomment this to # hide the original source file name. -#-renamesourcefileattribute SourceFile \ No newline at end of file +#-renamesourcefileattribute SourceFile + +-dontobfuscate \ No newline at end of file