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:
parent
68fcabd691
commit
de5ca02a82
54 changed files with 700 additions and 401 deletions
|
|
@ -316,6 +316,11 @@ impl Database {
|
|||
}
|
||||
|
||||
/// The game `index`, ready to show.
|
||||
/// The game `index` as PGN text, as it is in the file (to copy or share).
|
||||
pub fn pgn(&self, index: u32) -> Option<String> {
|
||||
self.db.raw_text(index as usize)
|
||||
}
|
||||
|
||||
pub fn game(&self, index: u32) -> Result<GameData, ApiError> {
|
||||
let parsed = self
|
||||
.db
|
||||
|
|
@ -499,6 +504,7 @@ mod tests {
|
|||
]
|
||||
);
|
||||
assert!(g.nodes[0].uci.is_empty());
|
||||
assert!(db.pgn(0).unwrap().contains("[%cal Ge2e4,Rd7d5]"));
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue