From 4156704ffe11cbb8804a9a676c8b2cf9d7a98e57 Mon Sep 17 00:00:00 2001 From: Jeena Date: Wed, 14 Oct 2026 00:53:05 +0000 Subject: [PATCH] build: sign the release variant with the debug key MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On TV hardware the debug build's UI thread renders at ~2fps (dumpsys gfxinfo: 87% janky frames, 50th percentile 85ms, stalls up to 4200ms while the GPU sits at 12ms). An R8 minified release of the same code turns the identical interaction into 184 frames at 27ms median with 15% jank — the artifact is the deliverable, and the debug signature keeps install -r seamless for sideloads. --- 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 8778cad..19f16dd 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -19,7 +19,12 @@ android { buildTypes { release { - isMinifyEnabled = false + // R8 on + signed with the debug key: the release variant is the TV + // deliverable — on the TV hardware the debug build's UI thread sits + // at ~2fps (dumpsys gfxinfo: 87% janky, UI-thread stalls up to 4s), + // while the GPU is fine. Same signature keeps install -r seamless. + isMinifyEnabled = true + signingConfig = signingConfigs.getByName("debug") proguardFiles( getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro"