rouse-context/docs
monkopedia-coder f163bd586a
Add google/foss product flavors (#461) (#466)
* Add google/foss product flavors (#461)

Introduce a `distribution` flavor dimension on `:app` with two flavors:

- `google` — the unchanged shipping build (Firebase/FCM/Crashlytics).
- `foss`   — compiles with zero firebase-*/google-services/Play-Services
  dependencies; google-services.json is not required to assemble it.

The google-services and firebase-crashlytics Gradle plugins are now applied
conditionally (skipped for a foss-only build, detected by requested task name),
and the Firebase deps are scoped to `googleImplementation`. The three runtime
seams get flavor-specific Koin bindings via a new `distributionModule`:
CrashReporter, AnonymousAuthClient/FcmTokenProvider/DeviceAuthTokenProvider, and
RenewalAuthProvider. The foss flavor binds NoOp/stub placeholders — real impls
land in #462-#464; #461 only needs both flavors to assemble.

Two direct FirebaseAuth call sites in shared `:app`/debug code
(IntegrationSetupViewModel, AddIntegrationDestination, TestCommandProvider) are
moved behind the seams so `main`/`debug`/`foss` compile Firebase-free.

The shared `:work` module keeps its Firebase types for now; only the FCM
`FcmReceiver` manifest entry moves to the google-flavor manifest so it is absent
from the foss build's merged manifest.

CI/task renames: assembleDebug -> assembleGoogle/FossDebug, testDebugUnitTest ->
testGoogleDebugUnitTest, release builds the google flavor only (dual-flavor
release is #465). Kover excludes the foss debug + flavored release test tasks.

Part of #460. Fixes #461.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

* Load flavor distributionModule in integration test harness

PR #461 moved CrashReporter, AnonymousAuthClient, FcmTokenProvider,
DeviceAuthTokenProvider, and RenewalAuthProvider out of the base appModule
into per-flavor distributionModule. RouseApplication registers both, but the
integration-test Koin bootstrap (AppIntegrationTestHarness.bootKoin) only
loaded appModule, so those five definitions were missing and every
com.rousecontext.app.integration.* test failed with NoDefinitionFoundException.

Add distributionModule (google variant on the integrationTest classpath) to
the startKoin module list, between appModule and the test overrides so any
harness fake still wins. Mirrors RouseApplication's base + distribution
composition.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

* Fix stale variant-task references missed in the flavor rename (#461)

- docs/self-hosting.md: :app:compileDebugKotlin -> :app:compileGoogleDebugKotlin
- app/build.gradle.kts comment: testDebugUnitTest -> testGoogleDebugUnitTest

Flagged by reviewer on PR #466.

---------

Co-authored-by: Jason Monk <monkopedia@gmail.com>
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-13 08:55:11 -04:00
..
auth-pages Regenerate auth page gallery with correct icon 2026-04-08 08:53:44 -04:00
design Fix #406 final wave: ui.md drift fixes + relay.md endpoint pointer (#413) 2026-04-25 18:49:10 -04:00
internal Add UX changes rule + decision log + onboarding flow page (#397) 2026-04-24 19:39:08 -04:00
notifications Fix #347: Client-subject notification copy + deep-link taps + Manage action (#362) 2026-04-22 03:11:08 -04:00
screenshots Remove 4 broken screenshot gallery entries (never-existed files) 2026-04-27 18:50:28 -04:00
user Set baseurl to empty for custom domain on GitHub Pages 2026-04-16 17:47:49 -04:00
agent-quickstart.md Add google/foss product flavors (#461) (#466) 2026-06-13 08:55:11 -04:00
audit.md Update tunnel-client + health-connect-expansion docs; delete superseded proposal docs (#406) (#412) 2026-04-25 18:13:09 -04:00
security-audit-2026-04-07.md Update README and security docs to match shipped behavior (#406 chunk A) (#411) 2026-04-25 18:38:12 -04:00
security-decisions.md Update README and security docs to match shipped behavior (#406 chunk A) (#411) 2026-04-25 18:38:12 -04:00
security.md Add comprehensive security overview document 2026-04-10 09:39:55 -04:00
self-hosting.md Add google/foss product flavors (#461) (#466) 2026-06-13 08:55:11 -04:00
test-coverage-audit.md Add google/foss product flavors (#461) (#466) 2026-06-13 08:55:11 -04:00
ux-decisions.md Wire the dormant Connection settings cluster (#453) (#456) 2026-06-02 08:31:04 -04:00
workflow.md Add T-11 security monitoring task, renumber subsequent tasks 2026-04-04 19:48:46 -04:00