Debloat your Android TV, install apps, browse and transfer files on it, all from your phone. Just 3 MB, no tracking, no root, no PC.
Update dialog: plain release notes without the commit list
jesse-agent-362c0f3074543f4
diff --git a/app/src/main/java/app/tellyscope/ui/UpdateDialog.kt b/app/src/main/java/app/tellyscope/ui/UpdateDialog.ktindex 550281b..fa9a472 100644--- a/app/src/main/java/app/tellyscope/ui/UpdateDialog.kt+++ b/app/src/main/java/app/tellyscope/ui/UpdateDialog.kt@@ -24,9 +24,8 @@ fun UpdateDialog(update: Update, onGet: () -> Unit, onLater: () -> Unit, onSkip:onDismissRequest = onLater,title = { Text("Tellyscope ${update.version} is out") },text = {- // Release notes are Markdown; shown as written rather than rendered.Column(Modifier.heightIn(max = 320.dp).verticalScroll(rememberScrollState())) {- Text(update.notes.ifEmpty { "No release notes." }, style = MaterialTheme.typography.bodyMedium)+ Text(dialogNotes(update.notes).ifEmpty { "No release notes." }, style = MaterialTheme.typography.bodyMedium)}},confirmButton = { Button(onClick = onGet) { Text("Get it") } },@@ -38,3 +37,16 @@ fun UpdateDialog(update: Update, onGet: () -> Unit, onLater: () -> Unit, onSkip:},)}++/**+ * release.yml's body as plain lines: the CHANGELOG part (prod) or the alpha line, without the+ * commit list, Markdown emphasis, code ticks or the trailing PR links, capped at [max] lines.+ */+internal fun dialogNotes(body: String, max: Int = 12): String {+ val lines = body.substringBefore("### Commits").lines()+ .map { it.replace("**", "").replace("`", "").replace(PR_LINK, "").trimEnd() }+ .filter { it.isNotBlank() }+ return (if (lines.size > max) lines.take(max) + "…and more on GitHub" else lines).joinToString("\n")+}++private val PR_LINK = Regex("""\s*\[#\d+]\([^)]*\)\s*$""")diff --git a/app/src/test/java/app/tellyscope/UpdateCheckTest.kt b/app/src/test/java/app/tellyscope/UpdateCheckTest.ktindex 81f6c0b..b7fd730 100644--- a/app/src/test/java/app/tellyscope/UpdateCheckTest.kt+++ b/app/src/test/java/app/tellyscope/UpdateCheckTest.kt@@ -5,6 +5,7 @@ package app.tellyscopeimport app.tellyscope.data.UpdateCheckimport app.tellyscope.data.compareVersionsimport app.tellyscope.data.newest+import app.tellyscope.ui.dialogNotesimport kotlinx.coroutines.test.runTestimport org.junit.Assert.assertEqualsimport org.junit.Assert.assertFalse@@ -116,4 +117,60 @@ class UpdateCheckTest {assertNull(check.check())assertEquals(0, calls)}++ /** v0.1.0's body as release.yml wrote it, commit list cut short. */+ private val prodBody = """++ - **New:** A new app icon: a telescope with a TV screen for a lens. [#28](../../pull/28)+ - **New:** Install apps on the TV from an APK, split APKs or a bundle. [#9](../../pull/9)+ - **New:** Send files to the TV's Download or Movies folder, and save them back. [#9](../../pull/9)+ - **New:** Suggested apps to disable, from a tested list for your TV. [#11](../../pull/11)+ - **Fixed:** Processes, screen state, connections and data used now show on real TVs. [#17](../../pull/17)+ - **Fixed:** A TV on Wi-Fi no longer shows its connection as Ethernet. [#17](../../pull/17)+ - **New:** An icon shows whether each device is a TV, projector, Fire TV or stick. [#18](../../pull/18)+ - **Improved:** The confirm before disabling suggested apps names every app. [#19](../../pull/19)+ - **Improved:** System updaters, Wi-Fi resources and Chrome's library are now protected. [#19](../../pull/19)+ - **Fixed:** Done and error messages stay on screen long enough to read. [#20](../../pull/20)+ - **Fixed:** Undo and results always go to the TV the action ran on. [#20](../../pull/20)+ - **New:** Debloat in two steps: pick your TV, then review every app it turns off. [#23](../../pull/23)+ - **Improved:** The TV page leads with the TV, its vitals and big action buttons. [#23](../../pull/23)+ - **Fixed:** Adding a TV with a port above 65535 shows a message, not a crash. [#25](../../pull/25)+ - **Fixed:** Losing Wi-Fi while pairing shows a message, not a crash. [#25](../../pull/25)+ - **Fixed:** A broken suggestions list can no longer crash the app. [#25](../../pull/25)+ - **Improved:** Undoing a Turn on in History asks before disabling the app. [#25](../../pull/25)++ ### Commits since the first commit++ - Changelog: 0.1.0 — 2026-10-23 (c9a1fe7)+ - README: the icon and a real heading, in place of the logo header (ef66937)+ """.trimIndent()++ /** v0.2.0-alpha.1's body as release.yml wrote it, commit list cut short. */+ private val alphaBody = """+ Alpha build v0.2.0-alpha.1 from `abdb1a8` on dev. Untested and may break; it installs as a separate app, `app.tellyscope.alpha`.++ ### Commits since v0.1.0-alpha.3++ - CHANGELOG: home screen switch (abdb1a8)+ - Start 0.2.0 (4afecde)+ """.trimIndent()++ @Test fun `prod notes keep the changelog lines, plain, capped at twelve`() {+ val lines = dialogNotes(prodBody).lines()+ assertEquals(13, lines.size)+ assertEquals("- New: A new app icon: a telescope with a TV screen for a lens.", lines.first())+ assertEquals("…and more on GitHub", lines.last())+ assertTrue(lines.none { "**" in it || "](" in it || "Commits" in it })+ }++ @Test fun `alpha notes are just the alpha line`() {+ assertEquals(+ "Alpha build v0.2.0-alpha.1 from abdb1a8 on dev. Untested and may break; it installs as a separate app, app.tellyscope.alpha.",+ dialogNotes(alphaBody),+ )+ }++ @Test fun `short notes are not cut`() {+ assertEquals("- Fixed: one thing.", dialogNotes("- **Fixed:** one thing. [#9](../../pull/9)\n\n### Commits since v1\n\n- x (abc)"))+ }}