Merge pull request #24 from Letdown2491/feat/staging-build-type

feat: add staging build type for release-performance on-device testing
This commit is contained in:
Barry Deen
2026-06-12 12:12:28 -04:00
committed by GitHub
+13
View File
@@ -63,6 +63,19 @@ android {
// contributors without the keystore still get app-release-unsigned.apk
signingConfig = signingConfigs.getByName("release").takeIf { it.storeFile != null }
}
create("staging") {
// Release-performance build for on-device testing. debuggable=true (the
// debug type) makes ART ignore the baseline profile and run JIT-only with
// deoptimization support, which cripples the per-event hot path (JSON parse,
// hex decode, SHA-256, JNI Schnorr verify per relay event). This variant is
// non-debuggable + R8 like release, but debug-signed so anyone can install
// it without the release keystore. Installs alongside debug/release.
initWith(getByName("release"))
applicationIdSuffix = ".staging"
resValue("string", "app_name", "Dark Wisp Staging")
signingConfig = signingConfigs.getByName("debug")
}
}
compileOptions {