feat(ffi): prove dart-to-rust pipeline and arm64 determinism on device

This commit is contained in:
2026-10-24 22:27:48 +02:00
parent 214ab7aac7
commit e371c72a35
11 changed files with 276 additions and 114 deletions
+15
View File
@@ -0,0 +1,15 @@
#!/usr/bin/env bash
# Builds (optional), installs and launches the debug APK.
set -euo pipefail
cd "$(dirname "$0")/../.."
ADB=${ADB:-adb}
PKG=${PKG:-com.ironarc.iron_arc}
if [ "${SKIP_BUILD:-0}" != "1" ]; then
(cd app && flutter build apk --debug --target-platform android-arm64)
fi
apk=app/build/app/outputs/flutter-apk/app-debug.apk
[ -f "$apk" ] || { echo "missing $apk" >&2; exit 1; }
$ADB install -r "$apk"
$ADB shell am force-stop "$PKG"
$ADB shell am start -n "$PKG/.MainActivity"
echo 'launched'