by hemc4 · 7mo ago · 0 comments
Apart from this, next step will be to add suport for building android apps on the android phones itself. No desktop needed.Building on the laptop with agents and installing the build in the phone and testing doea not seem AI native. If everything can run on my android phone, development cycle will speed up.
My major issue last time was providing the feedback to the agent by running the apk on phone i.e, pass the debug log from the apk back to agent so it can iterate on it without me providing any input.
I use 'just' (command runner) and the 'gh' CLI to automate this:
# Build and publish a GitHub release
release: apk
VERSION="v$(date +'%Y.%m.%d')-$(git rev-parse --short HEAD)"; \
APK="build/app/outputs/flutter-apk/app-release.apk"; \
REPO="$(git config --get remote.origin.url | sed -E 's#.*github.com[:/](.*)\.git#\1#')"; \
echo "Releasing $VERSION to $REPO"; \
git tag "$VERSION" 2>/dev/null || true; \
git push origin "$VERSION"; \
gh release create "$VERSION" "$APK" \
--repo "$REPO" \
--title "$VERSION" \
--notes "Automated release for $VERSION" \
|| gh release upload "$VERSION" "$APK" --repo "$REPO" --clobber