Pin only pushed commits, with no local overrides: Ziran v0.5.0 (f9f92b46), Kryon b45cc524 (one lock entry, ref master, shared with the Css and Plot master edges), Apps 352901e, Entity b30dd4a and practices 893e5b6f, whose sharpened banners and regenerated Lumi guide clips the narration check now matches. The Library opens each Tao Te Ching chapter on its own picture page: the chapter art and its title, centered together; the text pages follow. The reader keeps the picture page across reflow, and a chapter start or a Contents pick opens it. The 81 approved chapter pictures are included. Breeze now uses Kryon's namespaced widgets (Text.Draw/Text.Props, Button, Image, Modal.ActionModal, Layout, TabBar, LoadingScreen, LoadingIndicator, Shape.Circle) instead of the removed Kryon/Widgets facades. Hosted apps import std/text explicitly, since a short "text" import now names Kryon's widget. AGENTS.md and the Text/Button API checks describe the namespaced forms; two unused test doubles are removed. Build fixes for the new toolchain: the bundle runtime carries Ziran's instruction engine (no BOOTSTRAP=1) and takes the pinned host zi2c for cross builds; the Apps controller's lock context has the manifest's module roots; the app codec generator lists Kryon's raw modules only; the package scripts read ZX revision 28 bundle assets. The Apps controller digest matches the Apps 352901e build. Also included: the stopped lanes' work in this tree (Radio download, Photos install, Lists, Lumi, Habits shop rewards, astral exercise selection, appearance and download recovery) and the raylib-free desktop lane's host modules (app_trace, host_input, host_window, host_clock), inactive unless DESKTOP_HOST is defined. Not included: the crash-recovery lane's picture-window and storage crash-safety changes, which that lane commits itself. Local tests: zi-check (510 modules), native and Android source checks, hosted app checks, build-laws, clean-text-api-check, button-api-check, library-reader-test, library-ui-test, storage-crash-zi-test and native-image-decode-test pass. The bundled Arcade is still ZX revision 26 and waits for an Arcade build on these pins.
37 lines
1.2 KiB
Bash
37 lines
1.2 KiB
Bash
#!/usr/bin/env bash
|
|
# Verify the actual distributable, not merely the Gradle configuration.
|
|
set -euo pipefail
|
|
|
|
bundle="${1:-droid/app/build/outputs/bundle/gplay/app-gplay.aab}"
|
|
mapping='BUNDLE-METADATA/com.android.tools.build.obfuscation/proguard.map'
|
|
if [[ ! -s "$bundle" ]]; then
|
|
echo "FAIL: missing Play bundle: $bundle" >&2
|
|
exit 1
|
|
fi
|
|
python3 scripts/check-package-size.py "$bundle"
|
|
|
|
dex_bytes=$(unzip -l "$bundle" | awk '$4 ~ /\/dex\/classes[0-9]*\.dex$/ { total += $1 } END { printf "%.0f", total }')
|
|
if (( dex_bytes <= 0 )); then
|
|
echo "FAIL: Play bundle contains no DEX payload." >&2
|
|
exit 1
|
|
fi
|
|
|
|
# R8 embeds this mapping in optimized bundles. Renamed classes demonstrate
|
|
# obfuscation ran, but this is NOT Google's proprietary obfuscation percentage.
|
|
renamed=$(unzip -p "$bundle" "$mapping" | awk '
|
|
/^# compiler: R8$/ { r8 = 1 }
|
|
/^[^ #].* -> .*:$/ {
|
|
name = $3
|
|
sub(/:$/, "", name)
|
|
if ($1 != name && name !~ /R8\$\$REMOVED/) renamed++
|
|
}
|
|
END {
|
|
if (!r8 || !renamed) exit 1
|
|
print renamed
|
|
}') || {
|
|
echo 'FAIL: bundle is missing an R8 mapping with obfuscated classes.' >&2
|
|
exit 1
|
|
}
|
|
|
|
echo "PASS Play optimization: $dex_bytes uncompressed DEX bytes; $renamed renamed classes; embedded R8 mapping."
|