APK wrapper registers platform=android via AETHERFORGE_PLATFORM; fleet UI shows robot icons, Android Access Depth probes, and a shortened mining onion timeline.
38 lines
1.0 KiB
Bash
38 lines
1.0 KiB
Bash
#!/usr/bin/env bash
|
|
# Smoke-check that the Android Gradle project is structurally valid.
|
|
set -euo pipefail
|
|
|
|
ROOT="$(cd "$(dirname "$0")" && pwd)"
|
|
APP="$ROOT/agent-app"
|
|
|
|
required=(
|
|
"$APP/build.gradle.kts"
|
|
"$APP/settings.gradle.kts"
|
|
"$APP/src/main/AndroidManifest.xml"
|
|
"$APP/src/main/java/com/aetherforge/agent/MainActivity.kt"
|
|
"$APP/src/main/java/com/aetherforge/agent/AgentService.kt"
|
|
"$APP/src/main/java/com/aetherforge/agent/BootReceiver.kt"
|
|
"$APP/src/main/assets/config.json"
|
|
)
|
|
|
|
for f in "${required[@]}"; do
|
|
if [[ ! -f "$f" ]]; then
|
|
echo "missing required file: $f" >&2
|
|
exit 1
|
|
fi
|
|
done
|
|
|
|
grep -q 'FOREGROUND_SERVICE' "$APP/src/main/AndroidManifest.xml"
|
|
grep -q 'RECEIVE_BOOT_COMPLETED' "$APP/src/main/AndroidManifest.xml"
|
|
grep -q 'AgentService' "$APP/src/main/AndroidManifest.xml"
|
|
|
|
if [[ -x "$APP/gradlew" ]]; then
|
|
(cd "$APP" && ./gradlew help -q)
|
|
elif command -v gradle >/dev/null 2>&1; then
|
|
(cd "$APP" && gradle help -q)
|
|
else
|
|
echo "gradle not installed — structural checks only (PASS)"
|
|
fi
|
|
|
|
echo "android gradle smoke: OK"
|