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>
This commit is contained in:
vrubelroman 2026-10-22 01:57:03 +03:00
parent 68fcabd691
commit de5ca02a82
54 changed files with 700 additions and 401 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 62 KiB

After

Width:  |  Height:  |  Size: 70 KiB

Before After
Before After

View file

@ -1,170 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="108dp"
android:height="108dp"
android:viewportWidth="108"
android:viewportHeight="108">
<path
android:fillColor="#3DDC84"
android:pathData="M0,0h108v108h-108z" />
<path
android:fillColor="#00000000"
android:pathData="M9,0L9,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M19,0L19,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M29,0L29,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M39,0L39,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M49,0L49,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M59,0L59,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M69,0L69,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M79,0L79,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M89,0L89,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M99,0L99,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,9L108,9"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,19L108,19"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,29L108,29"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,39L108,39"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,49L108,49"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,59L108,59"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,69L108,69"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,79L108,79"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,89L108,89"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,99L108,99"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M19,29L89,29"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M19,39L89,39"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M19,49L89,49"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M19,59L89,59"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M19,69L89,69"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M19,79L89,79"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M29,19L29,89"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M39,19L39,89"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M49,19L49,89"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M59,19L59,89"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M69,19L69,89"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M79,19L79,89"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
</vector>

View file

@ -1,30 +0,0 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:aapt="http://schemas.android.com/aapt"
android:width="108dp"
android:height="108dp"
android:viewportWidth="108"
android:viewportHeight="108">
<path android:pathData="M31,63.928c0,0 6.4,-11 12.1,-13.1c7.2,-2.6 26,-1.4 26,-1.4l38.1,38.1L107,108.928l-32,-1L31,63.928z">
<aapt:attr name="android:fillColor">
<gradient
android:endX="85.84757"
android:endY="92.4963"
android:startX="42.9492"
android:startY="49.59793"
android:type="linear">
<item
android:color="#44000000"
android:offset="0.0" />
<item
android:color="#00000000"
android:offset="1.0" />
</gradient>
</aapt:attr>
</path>
<path
android:fillColor="#FFFFFF"
android:fillType="nonZero"
android:pathData="M65.3,45.828l3.8,-6.6c0.2,-0.4 0.1,-0.9 -0.3,-1.1c-0.4,-0.2 -0.9,-0.1 -1.1,0.3l-3.9,6.7c-6.3,-2.8 -13.4,-2.8 -19.7,0l-3.9,-6.7c-0.2,-0.4 -0.7,-0.5 -1.1,-0.3C38.8,38.328 38.7,38.828 38.9,39.228l3.8,6.6C36.2,49.428 31.7,56.028 31,63.928h46C76.3,56.028 71.8,49.428 65.3,45.828zM43.4,57.328c-0.8,0 -1.5,-0.5 -1.8,-1.2c-0.3,-0.7 -0.1,-1.5 0.4,-2.1c0.5,-0.5 1.4,-0.7 2.1,-0.4c0.7,0.3 1.2,1 1.2,1.8C45.3,56.528 44.5,57.328 43.4,57.328L43.4,57.328zM64.6,57.328c-0.8,0 -1.5,-0.5 -1.8,-1.2s-0.1,-1.5 0.4,-2.1c0.5,-0.5 1.4,-0.7 2.1,-0.4c0.7,0.3 1.2,1 1.2,1.8C66.5,56.528 65.6,57.328 64.6,57.328L64.6,57.328z"
android:strokeWidth="1"
android:strokeColor="#00000000" />
</vector>

View file

@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@drawable/ic_launcher_background" />
<foreground android:drawable="@drawable/ic_launcher_foreground" />
<monochrome android:drawable="@drawable/ic_launcher_foreground" />
</adaptive-icon>
<background android:drawable="@color/ic_launcher_background" />
<foreground android:drawable="@mipmap/ic_launcher_foreground" />
</adaptive-icon>

View file

@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@drawable/ic_launcher_background" />
<foreground android:drawable="@drawable/ic_launcher_foreground" />
<monochrome android:drawable="@drawable/ic_launcher_foreground" />
</adaptive-icon>
<background android:drawable="@color/ic_launcher_background" />
<foreground android:drawable="@mipmap/ic_launcher_foreground" />
</adaptive-icon>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 982 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.6 KiB

View file

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="Theme.ChessPenguin" parent="android:Theme.Material.NoActionBar">
<item name="android:windowBackground">#161718</item>
<item name="android:windowSplashScreenBackground">#161718</item>
<item name="android:windowSplashScreenIconBackgroundColor">@color/ic_launcher_background</item>
</style>
</resources>

View file

@ -35,11 +35,11 @@
<string name="game_of">%1$d из %2$d</string>
<string name="previous_game">Предыдущая партия</string>
<string name="next_game">Следующая партия</string>
<string name="flip">Перевернуть</string>
<string name="flip">Перевернуть доску</string>
<string name="to_start">В начало</string>
<string name="move_back">Ход назад</string>
<string name="move_forward">Ход вперёд</string>
<string name="to_end">В конец</string>
<string name="to_end">В конец линии</string>
<string name="next_moves">Дальше:</string>
<string name="board_hint">Это просмотр партии. Ходы листаются кнопками ◀ ▶ внизу.</string>
<string name="board_description">Доска, позиция после %1$s</string>
@ -83,7 +83,6 @@
<string name="settings">Настройки</string>
<string name="group_look">Внешний вид</string>
<string name="group_board">Доска</string>
<string name="group_engine">Движок</string>
<string name="theme">Тема</string>
<string name="theme_system">Как в системе</string>
@ -114,9 +113,21 @@
<string name="megabytes">%1$d МБ</string>
<string name="engine_battery">Движок расходует заряд. Он сам останавливается, когда гаснет экран.</string>
<string name="about">О программе</string>
<string name="build_full">Stockfish внутри</string>
<string name="build_light">Stockfish скачивается</string>
<string name="build_full">Stockfish уже внутри</string>
<string name="build_light">Stockfish скачивается в приложении</string>
<string name="about_text">Просмотр шахматных баз: PGN, ChessBase, архивы. Файлы только читаются и никогда не меняются.</string>
<string name="licenses">Лицензии</string>
<string name="licenses">Лицензии и авторы</string>
<string name="website">Сайт и исходный код</string>
<string name="game_info">Сведения о партии</string>
<string name="copy_pgn">Копировать PGN</string>
<string name="copy_fen">Копировать FEN</string>
<string name="share_game">Поделиться партией</string>
<string name="copied">Скопировано</string>
<string name="notes">Замечания</string>
<string name="engine_state_on">включён</string>
<string name="engine_state_off">выключен</string>
<string name="engine_state_missing">не скачан</string>
<string name="found_of">Найдено %1$s из %2$s</string>
<string name="group_game">Партия</string>
</resources>

View file

@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- The background of the adaptive icon (android-ui.md §10.7). -->
<color name="ic_launcher_background">#EAF2F9</color>
</resources>

View file

@ -3,8 +3,8 @@
<string name="sample_classics">Classic games</string>
<string name="sample_alekhine">Alekhine</string>
<string name="empty_title">Your databases will be here</string>
<string name="empty_text">Add a PGN file or an archive .zip/.7z — from the phone or a cloud.</string>
<string name="empty_title">Your databases will appear here</string>
<string name="empty_text">Add a PGN file or a .zip/.7z archive — from your phone or the cloud.</string>
<string name="add_database">Add database</string>
<string name="open_samples">Open sample games</string>
<string name="not_opened">not opened yet · %1$s</string>
@ -15,8 +15,8 @@
<string name="games_with_format">%1$s · %2$s</string>
<string name="menu">Menu</string>
<string name="rename">Rename</string>
<string name="remove">Remove from the list</string>
<string name="rename_hint">The name on the list. The file does not change.</string>
<string name="remove">Remove from list</string>
<string name="rename_hint">The name in the list. The file is not changed.</string>
<string name="cancel">Cancel</string>
<string name="save">Save</string>
<string name="removed">Database removed from the list</string>
@ -34,13 +34,13 @@
<string name="game_of">%1$d of %2$d</string>
<string name="previous_game">Previous game</string>
<string name="next_game">Next game</string>
<string name="flip">Flip</string>
<string name="flip">Flip board</string>
<string name="to_start">To the start</string>
<string name="move_back">Move back</string>
<string name="move_forward">Move forward</string>
<string name="to_end">To the end</string>
<string name="to_end">To the end of the line</string>
<string name="next_moves">Next:</string>
<string name="board_hint">This is a game viewer. Moves are stepped with the ◀ ▶ buttons below.</string>
<string name="board_hint">This is a game viewer. Step through the moves with ◀ ▶ below.</string>
<string name="board_description">Board, position after %1$s</string>
<string name="board_start">Board, starting position</string>
<string name="white_won">White won</string>
@ -50,12 +50,12 @@
<string name="engine">Engine</string>
<string name="thinking">Thinking…</string>
<string name="depth">d. %1$d</string>
<string name="depth">depth %1$d</string>
<string name="paused">paused</string>
<string name="deeper">Deeper</string>
<string name="more_lines">More lines</string>
<string name="fewer_lines">Fewer lines</string>
<string name="engine_not_answering">The engine is not answering</string>
<string name="engine_not_answering">The engine is not responding</string>
<string name="engine_not_starting">The engine does not start on this phone</string>
<string name="restart">Restart</string>
<string name="engine_line_preview">Engine line · move %1$d of %2$d</string>
@ -63,7 +63,7 @@
<string name="engine_sheet_title">Stockfish engine</string>
<string name="engine_sheet_text">Evaluates the position and shows the best moves. Works offline — it only has to be downloaded once.</string>
<string name="engine_size">Size: %1$d MB</string>
<string name="engine_metered">No Wi-Fi now: the download will go over mobile data.</string>
<string name="engine_metered">No Wi-Fi now: the download will use mobile data.</string>
<string name="not_now">Not now</string>
<string name="download">Download</string>
<string name="downloaded_of">Downloaded %1$d of %2$d MB</string>
@ -71,9 +71,9 @@
<string name="download_cancelled">Download cancelled</string>
<string name="engine_ready">The engine is ready</string>
<string name="no_internet">No internet. Connect to a network and try again.</string>
<string name="interrupted">The download was interrupted. What came is kept.</string>
<string name="interrupted">The download was interrupted. The downloaded part is kept.</string>
<string name="no_space">Not enough space: %1$d MB needed.</string>
<string name="corrupt">The engine file was damaged in the download. Download it again.</string>
<string name="corrupt">The engine file was damaged during the download. Download it again.</string>
<string name="retry">Try again</string>
<string name="resume">Continue</string>
<string name="download_again">Download again</string>
@ -81,18 +81,17 @@
<string name="preparing_engine">Preparing the engine…</string>
<string name="settings">Settings</string>
<string name="group_look">Look</string>
<string name="group_board">Board</string>
<string name="group_look">Appearance</string>
<string name="group_engine">Engine</string>
<string name="theme">Theme</string>
<string name="theme_system">As in the system</string>
<string name="theme_system">System default</string>
<string name="theme_light">Light</string>
<string name="theme_dark">Dark</string>
<string name="notation">Move notation</string>
<string name="notation_latin">Latin letters (K Q R B N)</string>
<string name="notation_figurines">Figurines</string>
<string name="notation_local">Letters of the language</string>
<string name="notation_hint">Only how moves look on the screen. PGN always keeps K Q R B N.</string>
<string name="notation_hint">Display only. PGN always uses K Q R B N.</string>
<string name="animation">Piece animation</string>
<string name="best_arrow">Best-move arrow</string>
<string name="vibration">Vibration</string>
@ -101,7 +100,7 @@
<string name="engine_missing">Not downloaded · Download (%1$d MB)</string>
<string name="engine_downloading">Downloading… %1$d of %2$d MB</string>
<string name="engine_delete">Delete the engine (frees %1$d MB)</string>
<string name="engine_delete_question">Delete the engine? It can be downloaded again.</string>
<string name="engine_delete_question">Delete the engine? You can download it again.</string>
<string name="delete">Delete</string>
<string name="lines">Lines</string>
<string name="time_per_position">Time per position</string>
@ -111,11 +110,23 @@
<string name="threads">Threads</string>
<string name="memory">Memory</string>
<string name="megabytes">%1$d MB</string>
<string name="engine_battery">The engine uses the battery. It stops by itself when the screen goes dark.</string>
<string name="engine_battery">The engine uses the battery. It stops by itself when the screen turns off.</string>
<string name="about">About</string>
<string name="build_full">Stockfish built in</string>
<string name="build_light">Stockfish downloaded in the app</string>
<string name="about_text">A viewer of chess databases: PGN, ChessBase, archives. Files are only read, never changed.</string>
<string name="licenses">Licenses</string>
<string name="licenses">Licenses and authors</string>
<string name="website">Website and source code</string>
<string name="game_info">Game details</string>
<string name="copy_pgn">Copy PGN</string>
<string name="copy_fen">Copy FEN</string>
<string name="share_game">Share game</string>
<string name="copied">Copied</string>
<string name="notes">Notes</string>
<string name="engine_state_on">on</string>
<string name="engine_state_off">off</string>
<string name="engine_state_missing">not downloaded</string>
<string name="found_of">Found %1$s of %2$s</string>
<string name="group_game">Game</string>
</resources>

View file

@ -1,5 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="Theme.ChessPenguin" parent="android:Theme.Material.Light.NoActionBar" />
</resources>
<!-- The window before Compose draws, and the Android 12 splash screen (§10.7). -->
<style name="Theme.ChessPenguin" parent="android:Theme.Material.Light.NoActionBar">
<item name="android:windowBackground">#FFFFFF</item>
<item name="android:windowSplashScreenBackground">#FFFFFF</item>
<item name="android:windowSplashScreenIconBackgroundColor">@color/ic_launcher_background</item>
</style>
</resources>

View file

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- The languages of the interface, for the per-app language in the system settings. -->
<locale-config xmlns:android="http://schemas.android.com/apk/res/android">
<locale android:name="en" />
<locale android:name="ru" />
</locale-config>