release: bump versionCode 91 -> 92 (0.1.0-CZ)
Some checks failed
build-apk / build-and-publish (push) Failing after 2m2s
gitleaks / scan (push) Failing after 2s

Ships the player-collapse-on-channel fix and picks up the strawcore
reliability pass. Releases had been silently no-op'ing on fdroid: the
versionCode is a hand-maintained constant, so a commit that doesn't bump it
rebuilds the same debug_<vc>.apk filename, and the publish receiver's
anti-downgrade guard (correctly) refuses to overwrite an already-published
file (exit 3 = "nothing to do"), which the CI treats as success. Bumping the
code produces a new filename that actually publishes.
This commit is contained in:
Cobb 2026-07-29 07:05:15 -07:00
parent 6d7e5508bb
commit 8d9ad3513f
5 changed files with 195 additions and 11 deletions

View file

@ -36,6 +36,29 @@ configure<ApplicationExtension> {
versionCode = STRAW_VERSION_CODE
versionName = STRAW_VERSION_NAME
resValue("string", "app_name", "Straw")
// Dogfood log-shipping token (feature/diag/LogShipper.kt). This repo
// is PUBLIC — the token must NEVER be committed, so it's injected at
// build time and defaults to "":
// 1. env var STRAW_LOGS_INGEST_TOKEN — CI: add a Forgejo Actions
// repo secret STRAW_LOGS_INGEST_TOKEN and pass it in the
// "Assemble debug APK" step's env block in
// .forgejo/workflows/build.yml.
// 2. `straw.logs.ingest.token=…` in local.properties (gitignored)
// for local dogfood builds.
// Empty token ⇒ LogShipper is fully disabled (no-op, zero network,
// no Settings row) — contributor builds neither break nor phone home.
val strawLogsToken: String = System.getenv("STRAW_LOGS_INGEST_TOKEN")
?: java.util.Properties().let { props ->
val f = rootProject.file("local.properties")
if (f.exists()) f.inputStream().use(props::load)
props.getProperty("straw.logs.ingest.token")
}
?: ""
// Escape so a pathological token can't break out of the generated
// String literal in BuildConfig.java.
val escapedToken = strawLogsToken.replace("\\", "\\\\").replace("\"", "\\\"")
buildConfigField("String", "STRAW_LOGS_TOKEN", "\"$escapedToken\"")
}
// Explicit signing so CI / release builds reuse ONE keystore instead of