Android stage 1: databases, games, the game viewer and the engine
androidApp/: Kotlin + Jetpack Compose over the Rust core (mobile-api, UniFFI).
- Databases: the desktop samples on the list from the first start, files added
with the system picker and read in place, rename, remove with undo.
- Games: a paged list with a search by players, event, site and date.
- Game: the green board with Merida pieces, the notation as on the desktop
(variations, comments, NAG), forks, paging games, hold-to-repeat steps,
comment arrows and squares, the check glow, Latin/figurine/local notation.
- Engine: Stockfish 19 built from the pinned source (scripts/stockfish.sh) and
run from nativeLibraryDir through the uci crate. Two builds: "full" with the
network inside, "light" downloading it on request (resume, SHA-256 check).
The time per position, lines, line preview on the board; the engine quits
when the screen goes away.
- Settings and About with the licenses.
mobile-api: game search, UCI moves and comment marks for nodes, the Analyzer.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-22 01:40:37 +03:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
|
Android: games from Lichess and Chess.com, newest first, with «Download new games»
The downloads of the desktop (lookup by nickname, one database per site or both in one,
resuming without duplicates, games still being played fetched once they end) move into a
shared crate, online-games; the desktop keeps its window on top of it.
On Android, «Add a database» → «Games from Lichess and Chess.com»: a nickname, what each
site has, the download with its progress. It belongs to the app, not to the screen: the
list of databases shows how it goes and says how it ended. «Download new games» in the
database's menu and over its games list fetches only the new ones. The games of a
downloaded database are listed from the most recent one (by UTC date and time, both sites
interleaved). Both builds may now use the internet, only when the user asks.
Reviewed by an independent tester and designer (docs/design/android-ui.md §23, §24).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23 16:37:16 +03:00
|
|
|
<!-- Games from Lichess and Chess.com, only when asked for (android-ui.md §23). -->
|
|
|
|
|
<uses-permission android:name="android.permission.INTERNET" />
|
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>
2026-10-23 18:42:27 +03:00
|
|
|
<!-- 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" />
|
Android stage 1: databases, games, the game viewer and the engine
androidApp/: Kotlin + Jetpack Compose over the Rust core (mobile-api, UniFFI).
- Databases: the desktop samples on the list from the first start, files added
with the system picker and read in place, rename, remove with undo.
- Games: a paged list with a search by players, event, site and date.
- Game: the green board with Merida pieces, the notation as on the desktop
(variations, comments, NAG), forks, paging games, hold-to-repeat steps,
comment arrows and squares, the check glow, Latin/figurine/local notation.
- Engine: Stockfish 19 built from the pinned source (scripts/stockfish.sh) and
run from nativeLibraryDir through the uci crate. Two builds: "full" with the
network inside, "light" downloading it on request (resume, SHA-256 check).
The time per position, lines, line preview on the board; the engine quits
when the screen goes away.
- Settings and About with the licenses.
mobile-api: game search, UCI moves and comment marks for nodes, the Analyzer.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-22 01:40:37 +03:00
|
|
|
|
|
|
|
|
<application
|
|
|
|
|
android:name=".ChessPenguinApp"
|
|
|
|
|
android:allowBackup="true"
|
|
|
|
|
android:icon="@mipmap/ic_launcher"
|
|
|
|
|
android:label="@string/app_name"
|
|
|
|
|
android:roundIcon="@mipmap/ic_launcher_round"
|
|
|
|
|
android:supportsRtl="true"
|
|
|
|
|
android:windowSoftInputMode="adjustResize"
|
Android: design review fixes, icon, signed releases, the site's Android downloads
- The design review (docs/design/android-ui.md §17): the move buttons in the
bottom bar (snackbars above them), ripple on press, larger ◀ ▶, coordinates
over the pieces, readable NAG colors in the light theme, 16 dp edges, the
⋮ menu (game details, copy PGN/FEN, share), "Deeper" next to ▾, TalkBack
states, no "*" for unfinished games, "Found N of M", texts.
- The penguin as the adaptive icon and on the splash screen; dark window.
- Release builds: R8, signing from the environment, androidApp/scripts/release.sh
(two APKs, apksigner and 16 KB alignment checks); the release workflow builds
them from the repository secrets.
- Website: the Android tab with both APKs, "Download for Android" on phones.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-22 01:57:03 +03:00
|
|
|
android:theme="@style/Theme.ChessPenguin"
|
|
|
|
|
android:localeConfig="@xml/locales_config"
|
|
|
|
|
android:enableOnBackInvokedCallback="true">
|
2026-10-23 02:06:08 +03:00
|
|
|
<!-- One task: a file opened from another app comes to the app already open. -->
|
Android stage 1: databases, games, the game viewer and the engine
androidApp/: Kotlin + Jetpack Compose over the Rust core (mobile-api, UniFFI).
- Databases: the desktop samples on the list from the first start, files added
with the system picker and read in place, rename, remove with undo.
- Games: a paged list with a search by players, event, site and date.
- Game: the green board with Merida pieces, the notation as on the desktop
(variations, comments, NAG), forks, paging games, hold-to-repeat steps,
comment arrows and squares, the check glow, Latin/figurine/local notation.
- Engine: Stockfish 19 built from the pinned source (scripts/stockfish.sh) and
run from nativeLibraryDir through the uci crate. Two builds: "full" with the
network inside, "light" downloading it on request (resume, SHA-256 check).
The time per position, lines, line preview on the board; the engine quits
when the screen goes away.
- Settings and About with the licenses.
mobile-api: game search, UCI moves and comment marks for nodes, the Analyzer.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-22 01:40:37 +03:00
|
|
|
<activity
|
|
|
|
|
android:name=".MainActivity"
|
2026-10-23 02:06:08 +03:00
|
|
|
android:exported="true"
|
|
|
|
|
android:launchMode="singleTask">
|
Android stage 1: databases, games, the game viewer and the engine
androidApp/: Kotlin + Jetpack Compose over the Rust core (mobile-api, UniFFI).
- Databases: the desktop samples on the list from the first start, files added
with the system picker and read in place, rename, remove with undo.
- Games: a paged list with a search by players, event, site and date.
- Game: the green board with Merida pieces, the notation as on the desktop
(variations, comments, NAG), forks, paging games, hold-to-repeat steps,
comment arrows and squares, the check glow, Latin/figurine/local notation.
- Engine: Stockfish 19 built from the pinned source (scripts/stockfish.sh) and
run from nativeLibraryDir through the uci crate. Two builds: "full" with the
network inside, "light" downloading it on request (resume, SHA-256 check).
The time per position, lines, line preview on the board; the engine quits
when the screen goes away.
- Settings and About with the licenses.
mobile-api: game search, UCI moves and comment marks for nodes, the Analyzer.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-22 01:40:37 +03:00
|
|
|
<intent-filter>
|
|
|
|
|
<action android:name="android.intent.action.MAIN" />
|
|
|
|
|
<category android:name="android.intent.category.LAUNCHER" />
|
|
|
|
|
</intent-filter>
|
2026-10-23 02:06:08 +03:00
|
|
|
<!-- "Open with": PGN, ZIP, 7z, and files of no known type (.cbv, and .pgn
|
|
|
|
|
from apps that do not know it). -->
|
|
|
|
|
<intent-filter>
|
|
|
|
|
<action android:name="android.intent.action.VIEW" />
|
|
|
|
|
<category android:name="android.intent.category.DEFAULT" />
|
|
|
|
|
<data android:scheme="content" />
|
|
|
|
|
<data android:mimeType="application/x-chess-pgn" />
|
|
|
|
|
<data android:mimeType="application/vnd.chess-pgn" />
|
|
|
|
|
<data android:mimeType="application/zip" />
|
|
|
|
|
<data android:mimeType="application/x-7z-compressed" />
|
|
|
|
|
<data android:mimeType="application/octet-stream" />
|
|
|
|
|
</intent-filter>
|
|
|
|
|
<!-- "Share" with a file of the same kinds. -->
|
|
|
|
|
<intent-filter>
|
|
|
|
|
<action android:name="android.intent.action.SEND" />
|
|
|
|
|
<category android:name="android.intent.category.DEFAULT" />
|
|
|
|
|
<data android:mimeType="application/x-chess-pgn" />
|
|
|
|
|
<data android:mimeType="application/vnd.chess-pgn" />
|
|
|
|
|
<data android:mimeType="application/zip" />
|
|
|
|
|
<data android:mimeType="application/x-7z-compressed" />
|
|
|
|
|
<data android:mimeType="application/octet-stream" />
|
|
|
|
|
</intent-filter>
|
Android stage 1: databases, games, the game viewer and the engine
androidApp/: Kotlin + Jetpack Compose over the Rust core (mobile-api, UniFFI).
- Databases: the desktop samples on the list from the first start, files added
with the system picker and read in place, rename, remove with undo.
- Games: a paged list with a search by players, event, site and date.
- Game: the green board with Merida pieces, the notation as on the desktop
(variations, comments, NAG), forks, paging games, hold-to-repeat steps,
comment arrows and squares, the check glow, Latin/figurine/local notation.
- Engine: Stockfish 19 built from the pinned source (scripts/stockfish.sh) and
run from nativeLibraryDir through the uci crate. Two builds: "full" with the
network inside, "light" downloading it on request (resume, SHA-256 check).
The time per position, lines, line preview on the board; the engine quits
when the screen goes away.
- Settings and About with the licenses.
mobile-api: game search, UCI moves and comment marks for nodes, the Analyzer.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-22 01:40:37 +03:00
|
|
|
</activity>
|
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>
2026-10-23 18:42:27 +03:00
|
|
|
<!-- The package installer's answer to an update (data/AppUpdates.kt). -->
|
|
|
|
|
<receiver
|
|
|
|
|
android:name=".data.InstallResult"
|
|
|
|
|
android:exported="false" />
|
Android stage 1: databases, games, the game viewer and the engine
androidApp/: Kotlin + Jetpack Compose over the Rust core (mobile-api, UniFFI).
- Databases: the desktop samples on the list from the first start, files added
with the system picker and read in place, rename, remove with undo.
- Games: a paged list with a search by players, event, site and date.
- Game: the green board with Merida pieces, the notation as on the desktop
(variations, comments, NAG), forks, paging games, hold-to-repeat steps,
comment arrows and squares, the check glow, Latin/figurine/local notation.
- Engine: Stockfish 19 built from the pinned source (scripts/stockfish.sh) and
run from nativeLibraryDir through the uci crate. Two builds: "full" with the
network inside, "light" downloading it on request (resume, SHA-256 check).
The time per position, lines, line preview on the board; the engine quits
when the screen goes away.
- Settings and About with the licenses.
mobile-api: game search, UCI moves and comment marks for nodes, the Analyzer.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-22 01:40:37 +03:00
|
|
|
</application>
|
|
|
|
|
|
|
|
|
|
</manifest>
|