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:
parent
05bcc55aac
commit
4156704ffe
1 changed files with 6 additions and 1 deletions
|
|
@ -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"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue