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
45
.github/workflows/release.yml
vendored
45
.github/workflows/release.yml
vendored
|
|
@ -129,8 +129,49 @@ jobs:
|
|||
name: macos
|
||||
path: dist/*
|
||||
|
||||
android:
|
||||
needs: version
|
||||
runs-on: ubuntu-24.04
|
||||
steps:
|
||||
- uses: actions/checkout@v7
|
||||
- uses: actions/setup-java@v5
|
||||
with:
|
||||
distribution: temurin
|
||||
java-version: "21"
|
||||
- uses: dtolnay/rust-toolchain@stable
|
||||
with:
|
||||
targets: aarch64-linux-android,x86_64-linux-android
|
||||
- uses: Swatinem/rust-cache@v2
|
||||
- name: Android NDK and platform, cargo-ndk
|
||||
run: |
|
||||
yes | "${ANDROID_HOME}/cmdline-tools/latest/bin/sdkmanager" --install "ndk;30.0.16248370" "platforms;android-37.0" > /dev/null
|
||||
cargo install cargo-ndk --version 4.1.2 --locked
|
||||
# Two APKs: Stockfish built in, and Stockfish downloaded in the app
|
||||
# (androidApp/scripts/release.sh, which also builds Stockfish from its source).
|
||||
# The signing key comes from the repository secrets.
|
||||
- name: Signed APKs
|
||||
env:
|
||||
KEYSTORE_BASE64: ${{ secrets.ANDROID_KEYSTORE_BASE64 }}
|
||||
CP_KEYSTORE_PASSWORD: ${{ secrets.ANDROID_KEYSTORE_PASSWORD }}
|
||||
CP_KEY_ALIAS: chesspenguin
|
||||
CP_KEY_PASSWORD: ${{ secrets.ANDROID_KEY_PASSWORD }}
|
||||
run: |
|
||||
if [[ -z "${KEYSTORE_BASE64}" ]]; then
|
||||
echo "::error::The Android signing key is not in the repository secrets"
|
||||
exit 1
|
||||
fi
|
||||
export CP_KEYSTORE="${RUNNER_TEMP}/release.jks"
|
||||
echo "${KEYSTORE_BASE64}" | base64 -d > "${CP_KEYSTORE}"
|
||||
export ANDROID_NDK_HOME="${ANDROID_HOME}/ndk/30.0.16248370"
|
||||
androidApp/scripts/release.sh
|
||||
rm -f "${CP_KEYSTORE}"
|
||||
- uses: actions/upload-artifact@v7
|
||||
with:
|
||||
name: android
|
||||
path: androidApp/dist/*.apk
|
||||
|
||||
publish:
|
||||
needs: [version, linux, flatpak, windows, macos]
|
||||
needs: [version, linux, flatpak, windows, macos, android]
|
||||
if: github.ref_type == 'tag'
|
||||
runs-on: ubuntu-24.04
|
||||
steps:
|
||||
|
|
@ -139,7 +180,7 @@ jobs:
|
|||
with:
|
||||
path: dist
|
||||
merge-multiple: true
|
||||
- name: Stockfish source (GPL-3.0 source offer for the engine bundled in the Flatpak)
|
||||
- name: Stockfish source (GPL-3.0 source offer for the engine bundled in the Flatpak and Android)
|
||||
run: packaging/stockfish.sh source dist
|
||||
- name: Checksums
|
||||
run: cd dist && sha256sum * > SHA256SUMS.txt
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue