Android: the app updates itself; one release check for the desktop and the phone
Some checks are pending
CI / macos-build (push) Waiting to run
CI / check (push) Waiting to run
CI / windows-build (push) Waiting to run

- crates/releases: the latest release on GitHub, its files and SHA-256 sums, shared by
  the desktop updater and the phone (desktop update.rs keeps its installers).
- mobile-api check_release: a newer release with its APKs and sums; a desktop-only
  release is no update, one without the light APK's sum cannot be checked.
- Android (android-ui.md §25): a check at start and on return once a day (switch and
  «Check now» in About), a card over the databases, a sheet through the install
  permission, the download (DownloadManager), the SHA-256, the full build keeping its
  engine network, and PackageInstaller; the state survives restarts, the update's
  snackbar waits for a screen. Network state permission for both builds (the full one
  crashed without it). Debug builds may ask a test server (CP_UPDATE_API).
- Release notes on GitHub come from this version's CHANGELOG section.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
vrubelroman 2026-10-23 18:42:27 +03:00
parent 136f5320a8
commit 7f23bca320
35 changed files with 2502 additions and 138 deletions

View file

@ -331,4 +331,65 @@
<item quantity="one">up to %1$s game</item>
<item quantity="other">up to %1$s games</item>
</plurals>
<string name="upd_title">Version %1$s is out</string>
<string name="upd_you_have">You have %1$s</string>
<string name="upd_whats_new">What’s new</string>
<string name="upd_whats_new_cd">What’s new, opens the page on GitHub</string>
<string name="upd_update">Update</string>
<string name="upd_install">Install</string>
<string name="upd_hidden_snack">The update is in Settings, under About</string>
<string name="upd_keeps">Databases, settings and the engine stay.</string>
<string name="upd_keeps_no_engine">Databases and settings stay.</string>
<string name="upd_closes">ChessPenguin closes while it installs — then open it again.</string>
<string name="upd_online_note">Games are downloading: installing stops it; you can continue it later.</string>
<string name="upd_perm_title">One permission is needed</string>
<string name="upd_perm_body">Android installs apps from outside a store only with your permission. Settings will open: turn the switch on for ChessPenguin and come back.</string>
<string name="upd_perm_open">Open settings</string>
<string name="upd_perm_denied">The permission is off — without it Android won’t install the new version.</string>
<string name="upd_perm_granted">Permission granted, downloading</string>
<string name="upd_on_site">Download from the website</string>
<string name="upd_open_site">Open the website</string>
<string name="upd_leave">You can close this: the download goes on.</string>
<string name="upd_waiting_net">No network. The download goes on by itself when the network is back.</string>
<string name="upd_waiting_net_short">Waiting for network</string>
<string name="upd_checking_file">Checking the file…</string>
<string name="upd_keeping_engine">Keeping the engine…</string>
<string name="upd_installing">Installing…</string>
<string name="upd_ready">The new version is downloaded and checked.</string>
<string name="upd_ready_short">Downloaded and checked</string>
<string name="upd_ready_snack">The new version is downloaded</string>
<string name="upd_aborted">Installation cancelled. The new version is downloaded — install it whenever you like.</string>
<string name="upd_notification">ChessPenguin update</string>
<string name="upd_done_snack">ChessPenguin is updated: %1$s → %2$s</string>
<string name="upd_err_failed">The download failed. Try again.</string>
<string name="upd_err_corrupt">The file got damaged while downloading, so it was not installed. Try again.</string>
<string name="upd_err_release">Something is wrong with this release: the Android file cannot be checked. Download the new version from the website.</string>
<string name="upd_err_storage">Android did not install the new version: not enough space. Free %1$d MB and try again.</string>
<string name="upd_err_conflict">Android did not install the new version: this ChessPenguin is signed with a different key. The new version can only be installed after removing this one, and removing it loses the list of databases and the downloaded databases.</string>
<string name="upd_err_blocked">Android or the phone’s protection stopped the installation. Download the new version from the website.</string>
<string name="upd_err_install">Android did not install the new version. Try again or download it from the website.</string>
<string name="upd_short_offline">No internet</string>
<string name="upd_short_space">Not enough space</string>
<string name="upd_short_corrupt">The file got damaged</string>
<string name="upd_short_install">Android did not install it</string>
<string name="upd_short_failed">The download failed</string>
<string name="upd_more">More</string>
<string name="upd_details">Details</string>
<string name="upd_copy">Copy</string>
<string name="upd_group">Updates</string>
<string name="upd_auto">Check for updates at start</string>
<string name="upd_auto_sub">Once a day ChessPenguin asks GitHub which version is the latest; nothing about you is sent.</string>
<string name="upd_check_now">Check now</string>
<string name="upd_checking">Checking…</string>
<string name="upd_latest">You have the latest version</string>
<string name="upd_checked">Checked %1$s</string>
<string name="upd_check_offline">No internet — cannot check for updates</string>
<string name="upd_check_failed">Could not check for updates: GitHub did not answer. Try later.</string>
<string name="s_about_available">Version %1$s is out</string>
<string name="s_about_downloading">Downloading version %1$s…</string>
<string name="s_about_ready">Version %1$s is downloaded</string>
<string name="upd_card_downloading">Update to %1$s, %2$d of %3$d megabytes downloaded</string>
<!-- Shown only when the interface is not in English. -->
<string name="upd_notes_english">The list of changes is on GitHub, in English.</string>
<string name="upd_short_release">The file cannot be checked</string>
</resources>