Android: the app updates itself; one release check for the desktop and the phone
- 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:
parent
136f5320a8
commit
7f23bca320
35 changed files with 2502 additions and 138 deletions
|
|
@ -2,6 +2,13 @@
|
|||
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<!-- Games from Lichess and Chess.com, only when asked for (android-ui.md §23). -->
|
||||
<uses-permission android:name="android.permission.INTERNET" />
|
||||
<!-- Whether there is a network, before a download (the engine's, an update) and a check
|
||||
for updates: in both builds. -->
|
||||
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
|
||||
<!-- The app installs its own updates (android-ui.md §25); the second one lets Android
|
||||
skip its question when the app installed the previous version itself. -->
|
||||
<uses-permission android:name="android.permission.REQUEST_INSTALL_PACKAGES" />
|
||||
<uses-permission android:name="android.permission.UPDATE_PACKAGES_WITHOUT_USER_ACTION" />
|
||||
|
||||
<application
|
||||
android:name=".ChessPenguinApp"
|
||||
|
|
@ -46,6 +53,10 @@
|
|||
<data android:mimeType="application/octet-stream" />
|
||||
</intent-filter>
|
||||
</activity>
|
||||
<!-- The package installer's answer to an update (data/AppUpdates.kt). -->
|
||||
<receiver
|
||||
android:name=".data.InstallResult"
|
||||
android:exported="false" />
|
||||
</application>
|
||||
|
||||
</manifest>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue