Skip to content

Add in-app update checker for the github flavor - #7

Merged
BigWebstas merged 1 commit into
mainfrom
task/update-checker-221593
Oct 6, 2026
Merged

BigWebstas merged 1 commit into
mainfrom
task/update-checker-221593

Conversation

@BigWebstas

Copy link
Copy Markdown
Owner

What

On a fresh launch, the github flavor asks GitHub for the latest release. If its tag is newer than the installed version, a dialog offers to download the APK and open the system installer.

Details

  • UpdateChecker.kt fetches releases/latest, compares versions, and picks the APK without "fdroid" in its name.
  • If the app isn't allowed to install apps yet, it sends the user to that setting first.
  • Gated by bool/has_update_checker (true only in the github flavor). F-Droid builds are unchanged.
  • REQUEST_INSTALL_PACKAGES is declared only in the github manifest.

Testing

  • Both flavors build. Only the github APK requests the install permission.
  • Live API response checked (latest v0.1.18, plain APK attached).
  • Not run on a device: needs a build older than the latest release.

Limitations

  • "Later" brings the dialog back on every launch.
  • No download progress, only a toast.
  • Only offers published releases, not bare tags.

🤖 Generated with Claude Code

On launch, query GitHub's latest release; if its tag is newer than the
installed version, offer to download the APK and hand it to the system
installer. Gated by bool/has_update_checker (true only in the github
flavor) and REQUEST_INSTALL_PACKAGES lives in the github manifest, so
the F-Droid build is unchanged.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@BigWebstas
BigWebstas merged commit de4f835 into main Oct 6, 2026
1 check failed
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.

1 participant