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.
Build each PR link from its number, on the main repo
jesse-agent-23201a8f179f290
diff --git a/app/src/main/java/app/tellyscope/data/Changelog.kt b/app/src/main/java/app/tellyscope/data/Changelog.ktindex 116d3dc..0b52a9b 100644--- a/app/src/main/java/app/tellyscope/data/Changelog.kt+++ b/app/src/main/java/app/tellyscope/data/Changelog.kt@@ -9,6 +9,12 @@ package app.tellyscope.dataobject Changelog {const val ASSET = "CHANGELOG.md"+ /**+ * The pull request on the main repo. The file's own links are relative, so GitHub resolves them+ * against whichever fork shows it: only the number is kept.+ */+ fun pullUrl(pr: Int) = RELEASES.removeSuffix("/releases") + "/pull/$pr"+enum class Kind(val label: String) { New("New"), Improved("Improved"), Fixed("Fixed") }/** One change. [pr] is the pull request it links to, if any; [details] are its indented points. */diff --git a/app/src/test/java/app/tellyscope/ChangelogTest.kt b/app/src/test/java/app/tellyscope/ChangelogTest.ktindex 4299a12..97b76a0 100644--- a/app/src/test/java/app/tellyscope/ChangelogTest.kt+++ b/app/src/test/java/app/tellyscope/ChangelogTest.kt@@ -5,6 +5,7 @@ package app.tellyscopeimport app.tellyscope.data.Changelogimport app.tellyscope.data.Changelog.Changeimport app.tellyscope.data.Changelog.Kind+import app.tellyscope.data.RELEASESimport org.junit.Assert.assertEqualsimport org.junit.Assert.assertTrueimport org.junit.Test@@ -48,6 +49,11 @@ class ChangelogTest {assertEquals(listOf(Change(Kind.Improved, "The Remote opens as a sheet.", 198)), releases[1].changes)}+ @Test fun aPullRequestOpensOnTheMainRepo() {+ assertEquals(RELEASES.removeSuffix("/releases") + "/pull/249", Changelog.pullUrl(249))+ assertTrue(Changelog.pullUrl(249).endsWith("/tellyscope/pull/249"))+ }+@Test fun aHeadingWithoutADateStillCounts() {val r = Changelog.parse("## 1.0.0\n\n- A line with no tag or link\n").single()assertEquals(null, r.date)