dashboard
repositories
activity
search
login
APPS
/
PAILot
summary
reflog
commits
tree
compare
forks
blame
|
history
|
raw
|
HEAD
build(android): declare com.android.vending.BILLING permission
Matthias Nott
2026-06-11
01b26eb410542d33200cf300ff5d7228dafb9a9e
[APPS/PAILot.git]
/
tools
/
build-android-aab.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash
# PAILot Android AAB Build Script
# Produces a Play Store-ready signed App Bundle.
set -e
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
APP_DIR="$(cd "$SCRIPT_DIR/.." && pwd)"
cd "$APP_DIR"
# Pin JDK 21 — system openjdk 25 is not yet parseable by the Kotlin compiler
# bundled with AGP. JDK 17 also works if you prefer; just point JAVA_HOME at it.
JDK="${JAVA_HOME_RELEASE:-/opt/homebrew/Cellar/openjdk@21/21.0.11/libexec/openjdk.jdk/Contents/Home}"
echo "=== Building Android App Bundle (AAB) ==="
JAVA_HOME="$JDK" flutter build appbundle --release --no-tree-shake-icons
echo ""
echo "=== Done ==="
AAB=build/app/outputs/bundle/release/app-release.aab
ls -la "$AAB"
echo ""
echo "Upload $AAB to the Play Console (Production → Create new release)."