From e4a70d86ef4ce199283b63d9172466a4bd553c5d Mon Sep 17 00:00:00 2001 From: gmegidish Date: Tue, 16 Jun 2026 11:03:56 +0200 Subject: [PATCH] perf: shrink classes.dex from ~932KB to ~47KB MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Drop the unused UI library dependencies (material, appcompat, core-ktx, tracing) and replace the Material app theme with a zero-cost framework theme. None of these were referenced by the source — they were pulled in solely by the Material theme. This app is headless (instrumentation + broadcast receiver, no activity), so a framework theme is sufficient. classes.dex: 953,956 -> 47,700 bytes --- app/build.gradle.kts | 4 ---- app/src/main/res/values-night/themes.xml | 16 ---------------- app/src/main/res/values/themes.xml | 20 ++++---------------- 3 files changed, 4 insertions(+), 36 deletions(-) delete mode 100644 app/src/main/res/values-night/themes.xml diff --git a/app/build.gradle.kts b/app/build.gradle.kts index 5799b92..ac4b862 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -56,10 +56,6 @@ android { dependencies { - implementation(libs.androidx.core.ktx) - implementation(libs.androidx.tracing) - implementation(libs.androidx.appcompat) - implementation(libs.material) implementation(libs.androidx.uiautomator) { exclude(group = "junit", module = "junit") } diff --git a/app/src/main/res/values-night/themes.xml b/app/src/main/res/values-night/themes.xml deleted file mode 100644 index d6b63cc..0000000 --- a/app/src/main/res/values-night/themes.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - - \ No newline at end of file diff --git a/app/src/main/res/values/themes.xml b/app/src/main/res/values/themes.xml index be6239d..e51b2de 100644 --- a/app/src/main/res/values/themes.xml +++ b/app/src/main/res/values/themes.xml @@ -1,16 +1,4 @@ - - - - \ No newline at end of file + + +