mirror of
https://github.com/Monkopedia/rouse-context.git
synced 2026-11-22 13:19:36 +00:00
* 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> |
||
|---|---|---|
| .. | ||
| auth-pages | ||
| design | ||
| internal | ||
| notifications | ||
| screenshots | ||
| user | ||
| agent-quickstart.md | ||
| audit.md | ||
| security-audit-2026-04-07.md | ||
| security-decisions.md | ||
| security.md | ||
| self-hosting.md | ||
| test-coverage-audit.md | ||
| ux-decisions.md | ||
| workflow.md | ||