Your phone, on your command. Gotcha is world's first fully on-device AI copilot for Android that turns natural language into real device actions — safely.
ci: extend the nightly matrix to API 35 and 36
Durganshu8b192dbe0f87
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.ymlindex db69b52..88d651f 100644--- a/.github/workflows/ci.yml+++ b/.github/workflows/ci.yml@@ -167,6 +167,9 @@ jobs:app/build/outputs/androidTest-results/retention-days: 14+ # Sharding (-Pandroid.testInstrumentationRunnerArguments.numShards/shardIndex plus a+ # `shard` matrix axis) is deliberately deferred until the instrumented suite exceeds+ # ~20 tests; at 6 tests it would cost more in emulator boots than it saves.instrumented-full:if: github.event_name == 'schedule' || github.event_name == 'workflow_dispatch'runs-on: ubuntu-latest@@ -176,7 +179,8 @@ jobs:matrix:# Mirrors the GMD "full" group in app/build.gradle.kts. API 30 (the# app's minSdk) uses the plain default image — no usable ATD image at- # that level, see the notes in build.gradle.kts; 33/34 use ATD.+ # that level, see the notes in build.gradle.kts; 33/34/35 use ATD.+ # API 36 has no ATD image published yet, so it uses google_apis.include:- api-level: 30target: default@@ -187,6 +191,12 @@ jobs:- api-level: 34target: aosp_atdprofile: pixel_6+ - api-level: 35+ target: aosp_atd+ profile: pixel_8+ - api-level: 36+ target: google_apis+ profile: pixel_8steps:- uses: actions/checkout@v4diff --git a/app/build.gradle.kts b/app/build.gradle.ktsindex 6349a35..defcb12 100644--- a/app/build.gradle.kts+++ b/app/build.gradle.kts@@ -154,10 +154,15 @@ android {create("smoke") {targetDevices.add(allDevices["api34"])}+ // API 35/36 bring background-start, foreground-service and notification+ // restrictions that hit an overlay/assistant app hard — the highest-risk+ // untested axis after OEM behaviour.create("full") {targetDevices.add(allDevices["api30"])targetDevices.add(allDevices["api33"])targetDevices.add(allDevices["api34"])+ targetDevices.add(allDevices["api35"])+ targetDevices.add(allDevices["api36"])}// Android 11 (minSdk) through Android 16 — the range requested for manual// multi-version verification.diff --git a/app/src/test/java/com/gotcha/tools/FeatureCoverageManifestTest.kt b/app/src/test/java/com/gotcha/tools/FeatureCoverageManifestTest.ktindex 0927364..37b623c 100644--- a/app/src/test/java/com/gotcha/tools/FeatureCoverageManifestTest.kt+++ b/app/src/test/java/com/gotcha/tools/FeatureCoverageManifestTest.kt@@ -205,6 +205,49 @@ class FeatureCoverageManifestTest {appendLine()}+ appendLine("## Device and Android-version coverage")+ appendLine()+ appendLine(+ "The tiers above say *whether* a feature is tested. This says *where*."+ )+ appendLine()+ appendLine("| Axis | Coverage |")+ appendLine("|---|---|")+ appendLine(+ "| Android versions (JVM) | `ROBOLECTRIC` tests run under `@Config(sdk = [...])`, " ++ "typically API 30/33/34, so version-branching logic is covered in seconds " ++ "without an emulator. |"+ )+ appendLine(+ "| Android versions (emulator) | Nightly `instrumented-full` matrix: API 30 " ++ "(minSdk), 33, 34, 35, 36. Per-PR smoke runs API 34 only. |"+ )+ appendLine(+ "| OEM behaviour | **Not covered.** No emulator reproduces Samsung/Xiaomi battery " ++ "managers killing overlay services and background agents — this app's largest " ++ "real-world risk. Firebase Test Lab on physical devices is the only path; " ++ "parked pending a GCP project (see `docs/TESTING_PLAN.md`). |"+ )+ appendLine()+ appendLine("### Instrumented suite")+ appendLine()+ appendLine(+ "`app/src/androidTest` covers app-level flows rather than individual tools: " ++ "launch routing (`SmokeLaunchTest`), a chat round-trip against a mock LLM " ++ "(`ChatRoundTripTest`), settings persistence (`SettingsFlowTest`) and the " ++ "assistive ball overlay (`AssistiveBallTest`)."+ )+ appendLine()+ appendLine(+ "`AccessibilityServiceTest` is `@Ignore`d. Binding `GotchaAccessibilityService` " ++ "reliably fails while the app is under self-instrumentation, even with the " ++ "process warm and after waiting 45s; the identical sequence binds in 0-5s via " ++ "plain `adb shell` outside instrumentation. That is a platform rough edge in " ++ "`AccessibilityManagerService`, not a bug in the service — which is why every " ++ "accessibility-dependent tool above is `MANUAL_ONLY`. A clean run reports " ++ "5 passed / 1 skipped."+ )+ appendLine()appendLine("## Manual QA checklist")appendLine()val manual = entries.filter { it.tier == "MANUAL_ONLY" }diff --git a/docs/FEATURE_TEST_COVERAGE.md b/docs/FEATURE_TEST_COVERAGE.mdindex 282c307..6ccf0bf 100644--- a/docs/FEATURE_TEST_COVERAGE.md+++ b/docs/FEATURE_TEST_COVERAGE.md@@ -135,6 +135,22 @@ Every tool the assistant can call is listed below, together with how it is verif| `webfetch` | `UNIT` | `WebFetchToolTest` — HTML-to-text extraction, truncation, error handling || `websearch` | `MANUAL_ONLY` | Performs real network I/O against a search provider; exercising it in CI would make the suite non-hermetic. |+## Device and Android-version coverage++The tiers above say *whether* a feature is tested. This says *where*.++| Axis | Coverage |+|---|---|+| Android versions (JVM) | `ROBOLECTRIC` tests run under `@Config(sdk = [...])`, typically API 30/33/34, so version-branching logic is covered in seconds without an emulator. |+| Android versions (emulator) | Nightly `instrumented-full` matrix: API 30 (minSdk), 33, 34, 35, 36. Per-PR smoke runs API 34 only. |+| OEM behaviour | **Not covered.** No emulator reproduces Samsung/Xiaomi battery managers killing overlay services and background agents — this app's largest real-world risk. Firebase Test Lab on physical devices is the only path; parked pending a GCP project (see `docs/TESTING_PLAN.md`). |++### Instrumented suite++`app/src/androidTest` covers app-level flows rather than individual tools: launch routing (`SmokeLaunchTest`), a chat round-trip against a mock LLM (`ChatRoundTripTest`), settings persistence (`SettingsFlowTest`) and the assistive ball overlay (`AssistiveBallTest`).++`AccessibilityServiceTest` is `@Ignore`d. Binding `GotchaAccessibilityService` reliably fails while the app is under self-instrumentation, even with the process warm and after waiting 45s; the identical sequence binds in 0-5s via plain `adb shell` outside instrumentation. That is a platform rough edge in `AccessibilityManagerService`, not a bug in the service — which is why every accessibility-dependent tool above is `MANUAL_ONLY`. A clean run reports 5 passed / 1 skipped.+## Manual QA checklistRun through this before a release. Each item is a tool with no automated coverage, so this list is the pre-release manual test script.diff --git a/docs/RUNNING_TESTS.md b/docs/RUNNING_TESTS.mdindex f28b242..7a52ebd 100644--- a/docs/RUNNING_TESTS.md+++ b/docs/RUNNING_TESTS.md@@ -64,7 +64,10 @@ window ever appears. This is what CI uses.**Other predefined groups** (in `app/build.gradle.kts` → `testOptions.managedDevices`):- `smokeGroupDebugAndroidTest` — just `api34`, for a fast PR-level check.-- `fullGroupDebugAndroidTest` — `api30` (Android 11, the app's `minSdk`), `api33`, `api34`.+- `fullGroupDebugAndroidTest` — `api30` (Android 11, the app's `minSdk`), `api33`, `api34`,+ `api35`, `api36`. This mirrors the nightly CI matrix. API 35/36 matter disproportionately+ for this app: they tighten background-start, foreground-service and notification rules,+ which is exactly what an overlay/assistant app leans on.**Reports** land at `app/build/reports/androidTests/managedDevice/debug/<device>/index.html`per device (a combined summary too, if you ran a group).