build: sign the release variant with the debug key

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.
This commit is contained in:
Jeena 2026-10-14 00:53:05 +00:00
parent 05bcc55aac
commit 4156704ffe

View file

@ -19,7 +19,12 @@ android {
buildTypes { buildTypes {
release { 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( proguardFiles(
getDefaultProguardFile("proguard-android-optimize.txt"), getDefaultProguardFile("proguard-android-optimize.txt"),
"proguard-rules.pro" "proguard-rules.pro"