Skip to content

Update: checksum, Cancel and translated texts (design system self-update) - #56

Closed
gabrielbr wants to merge 1 commit into
mainfrom
ccr-c36991b8-6gkeg4
Closed

gabrielbr wants to merge 1 commit into
mainfrom
ccr-c36991b8-6gkeg4

Conversation

@gabrielbr

Copy link
Copy Markdown
Owner

What changes

PulseLoop's update feature is now the standard for every app (Gabriel Design System 0.4.0, docs/self-update.md). This PR brings PulseLoop itself up to that standard.

  • Checksum:
    • Every release now publishes SHA256SUMS.txt (release.yml).
    • The app installs an update only when all of these hold:
      • the download's SHA-256 matches that file
      • the whole file arrived over HTTPS
      • it is PulseLoop signed with the installed app's key
    • A release without a checksum isn't offered.
    • The update to this version still works from 2.11.53, because the old updater doesn't need the checksum.
  • Dialog:
    • The title reads "Update available · {version}", and the button "Update · {size}".
    • While downloading, Later becomes Cancel, which stops the download and deletes the partial file.
    • The progress text and errors are announced to TalkBack.
    • When install permission is missing, it says "Allow installs from this app, then tap Update again."
  • Translations: every update text goes through tr(), with Portuguese entries. Failure reasons are fixed phrases, such as "no connection" or "GitHub didn't answer", instead of raw HTTP codes.
  • Unchanged: the foreground check (at most every 15 minutes, with ETag), the dismissed-version memory, and the About screen layout.

Checks run

  • ./gradlew :app:testDebugUnitTest: 1,803 tests, 3 failures. They are the same 3 that fail on main without this change: ResponsesHttpTest.testUnresolvableHostRetriesThenFailsAsTransport and two MealJournalTest caffeine-timing tests.
  • New UpdateCheckerTest (5 tests) covers parsing SHA256SUMS.txt, which APK is picked (HTTPS only), the size label, and the tag.

Design files

No new screen, and the dialog keeps its layout. Neither the canvas nor the design-system artifact could be opened from this session.


Generated by Claude Code

…ate)

PulseLoop's update feature is now the standard for every app (Gabriel
Design System 0.4.0, docs/self-update.md). Bringing it to that standard:

- Every release publishes SHA256SUMS.txt; the app installs an update only
  when the download's SHA-256 matches it, the file arrived whole over
  HTTPS, and it is this app signed with the installed app's key. A
  release without a checksum isn't offered.
- The dialog: "Update available · {version}", Update · size, and Later
  becomes Cancel while downloading (stops it, deletes the part).
- Every update text goes through tr(), with Portuguese entries; failure
  reasons are fixed phrases instead of raw HTTP codes.
- UpdateCheckerTest covers the checksum file, which APK is picked, the
  size label and the tag.

Claude-Session: https://claude.ai/code/session_01AFTKgVttu8z9Wu34dcvEYY

Copy link
Copy Markdown
Owner Author

Closing as superseded. 2231a00 ("Follow the design system: three skills, update checksum, one type scale", merged in #59 and released as v2.11.56+131) already ships everything this PR does:

  • SHA256SUMS.txt published by release.yml
  • the updater's checksum, HTTPS and signing-key checks
  • Update · {size}, Cancel while downloading, and the translated texts
  • its own UpdateChecksumTest

Merging this as well would only duplicate that code.


Generated by Claude Code

@gabrielbr gabrielbr closed this Nov 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants