summaryrefslogtreecommitdiff
path: root/.github/workflows/android.yml
AgeCommit message (Collapse)Author
2026-04-15ci: upload to Firebase before archiving test APKsPeter Stone
2026-04-14CI: run on claude/** branches; skip Firebase deploy on non-mainClaude
Adds claude/** to push triggers so CI runs on every feature branch push — enabling check-run inspection via GitHub API without requiring a manual main push first. Firebase distribution is already gated on refs/heads/main; adding the event_name check ensures it also won't fire on PRs from main. https://claude.ai/code/session_01HXPjBsogsJVRwCiekDGkJX
2026-04-12Fix Actions storage: set artifact retention-daysClaude
test-apks: 1 day — only needed for the smoke-test job in the same run smoke-test-results: 7 days — enough for post-failure debugging Default is 90 days; at ~30 MB per run this was filling the 500 MB free-tier limit in ~2 weeks. https://claude.ai/code/session_01HXPjBsogsJVRwCiekDGkJX
2026-03-25refactor: address simplify review findingsPeter Stone
TrackRepository.addPoint() now returns Boolean (true if point was added). MainViewModel.addGpsPoint() only updates _trackPoints StateFlow when a point is actually appended — eliminates ~3,600 no-op flow emissions per hour when not recording. MainActivity: loadedStyle promoted from nullable field to MutableStateFlow<Style?>; trackPoints observer uses filterNotNull + combine so no track points are silently dropped if the style loads after the first GPS fix. Smoke tests: replaced 11× ActivityScenario.launch().use{} with a single @get:Rule ActivityScenarioRule — same isolation, less boilerplate. CI: removed redundant app-debug artifact upload (app-debug.apk is already included inside the test-apks artifact). Removed stale/placeholder comments from MainActivity. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-25test(ci): share APKs between jobs and expand smoke testsPeter Stone
CI — build job now uploads both APKs as the 'test-apks' artifact. smoke-test job downloads them and passes -x assembleDebug -x assembleDebugAndroidTest to skip recompilation (~4 min saved). Test results uploaded as 'smoke-test-results' artifact on every run. Smoke tests expanded from 1 → 11 tests covering: - MainActivity launches without crash - All 4 bottom-nav tabs are displayed - Safety tab: Safety Dashboard, ACTIVATE MOB, ANCHOR WATCH visible - Log tab: voice-log mic FAB visible - Instruments tab: bottom sheet displayed - Map tab: returns from overlay, mapView visible - MOB FAB: always visible, visible on Safety tab - Record Track FAB: displayed, toggles to Stop Recording, toggles back MainActivity: moved isRecording observer to initializeUI() so the FAB content description updates without requiring GPS permission (needed for emulator tests that run without location permission). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-25chore: update CI workflow to target main branchPeter Stone
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-16feat: add claudomator webhook notification to CI jobsPeter Stone
Posts workflow_run events to the claudomator server on completion of both the build and smoke-test jobs (success or failure). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-15fix: rasterise vector drawable for MapLibre; add startup smoke testPeter Stone
Bug: BitmapFactory.decodeResource() returns null for vector drawables (ic_tidal_arrow.xml). style.addImage(id, null) then NPE-crashed inside MapLibre's native layer. The previous style URL was invalid so the setStyle callback never fired and the bug was hidden; fixing the URL in c7b42ab exposed it. Fix: draw the VectorDrawable onto a Canvas to produce a real Bitmap before handing it to MapLibre, matching the pattern already used in MapFragment for the wind-arrow icon. Also adds: - MainActivitySmokeTest: Espresso test that launches MainActivity and asserts it doesn't immediately crash — catches this class of bug. - CI smoke-test job: runs the Espresso test on an API-30 emulator via reactivecircus/android-emulator-runner after the build job passes. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-13fix: switch to wzieba/Firebase-Distribution-Github-ActionPeter Stone
2026-03-13fix: update CI/CD workflow to trigger on master branchPeter Stone
2026-03-13refactor: update package name to org.terst.nav and setup CI/CD with Firebase ↵Peter Stone
App Distribution