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.
build: add Kover coverage reporting (report-only, no gate)
Durganshuaa6588116acf
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.ymlindex 0ef3b36..db69b52 100644--- a/.github/workflows/ci.yml+++ b/.github/workflows/ci.yml@@ -42,6 +42,23 @@ jobs:- name: Unit testsrun: ./gradlew :app:testDebugUnitTest --stacktrace+ # Report-only: the feature-coverage manifest is the gate, not a percentage.+ # See the comment on the kover block in app/build.gradle.kts.+ - name: Coverage report+ run: ./gradlew :app:koverXmlReport :app:koverHtmlReport --stacktrace++ # Kover emits JaCoCo-format XML, so this action reads it directly. Thresholds are 0+ # on purpose — it posts total + changed-files coverage and never fails the build.+ - name: Post coverage on the PR+ if: github.event_name == 'pull_request'+ uses: madrapps/[email protected]+ with:+ paths: app/build/reports/kover/report.xml+ token: ${{ secrets.GITHUB_TOKEN }}+ min-coverage-overall: 0+ min-coverage-changed-files: 0+ title: Coverage (report-only — the feature manifest is the gate)+- name: Android Lintrun: ./gradlew :app:lintDebug --stacktracediff --git a/app/build.gradle.kts b/app/build.gradle.ktsindex bc15032..6349a35 100644--- a/app/build.gradle.kts+++ b/app/build.gradle.kts@@ -6,6 +6,7 @@ plugins {id("org.jetbrains.kotlin.android")id("org.jetbrains.kotlin.plugin.serialization")id("io.gitlab.arturbosch.detekt")+ id("org.jetbrains.kotlinx.kover")}// Load signing credentials from local.properties (gitignored), if present.@@ -173,6 +174,33 @@ android {}}+/**+ * Coverage reporting only — deliberately no `koverVerify` thresholds.+ *+ * A global percentage would be misleading here: most of `com.gotcha.tools` needs a Context,+ * and the Compose files in `com.gotcha.ui` generate synthetic bytecode that pollutes the+ * denominator. The gate is the feature manifest (FeatureCoverageManifestTest); this is the+ * diagnostic that tells you where to aim next. Watch `com.gotcha.tools`, `com.gotcha.agent`+ * and `com.gotcha.data`.+ *+ * Reports: ./gradlew :app:koverHtmlReport -> app/build/reports/kover/html/index.html+ */+kover {+ reports {+ filters {+ excludes {+ classes(+ "com.gotcha.ui.theme.*",+ "*ComposableSingletons*",+ "*\$\$serializer",+ "*_Factory",+ "*Kt\$*\$*" // Compose/lambda synthetics+ )+ }+ }+ }+}+detekt {buildUponDefaultConfig = trueconfig.setFrom(rootProject.files("config/detekt/detekt.yml"))diff --git a/build.gradle.kts b/build.gradle.ktsindex 8d85bdd..a5b983b 100644--- a/build.gradle.kts+++ b/build.gradle.kts@@ -4,4 +4,7 @@ plugins {id("org.jetbrains.kotlin.plugin.serialization") version "1.9.22" apply false// Pinned to 1.23.6: last detekt release built against Kotlin 1.9.x. Bump only with Kotlin.id("io.gitlab.arturbosch.detekt") version "1.23.6" apply false+ // Coverage is a diagnostic, not a gate — see docs/FEATURE_TEST_COVERAGE.md for the+ // manifest that actually gates the build. No koverVerify thresholds by design.+ id("org.jetbrains.kotlinx.kover") version "0.9.1" apply false}