Modern Apps git

← Modern-Apps.git

docs-agent-overviews-room

Commit
4a220cf8106f2d590875f150dbf7996b8458fecf
Author
vayun-mathur <[email protected]>
When
2026-10-16 04:07 UTC (1 month ago)
Parents
62a514c

Diff

library/room/AGENTS.md
diff --git a/library/room/AGENTS.md b/library/room/AGENTS.mdindex 4f40ff9f97..f850c6e3f4 100644--- a/library/room/AGENTS.md+++ b/library/room/AGENTS.md@@ -2,16 +2,22 @@  > Scoped supplement. Global rules in root `AGENTS.md` apply. Stay inside `library/room/` + allowed shared modules. Do not root-scan. +<!-- last-reviewed: 2026-10-16 --> - Gradle: :library:room / dir: library/room/-- Package roots present: -- Entry files: +- Package roots present: (pure-Kotlin Room3 + SQLCipher wiring — single package)+- Entry files: RoomRepository.kt (no MainActivity/Route — library) - Deps: :library-- Metadata: metadata_data/library-room.md (MISSING)+- Metadata: metadata_data/library-room.md (absent — libraries have none by design) - Rust: no / screenshotTest: no -## Key files+## Overview+**Purpose:** Room 3 + SQLCipher wiring for every app database. Apps never call `buildDatabase()` — they subclass `RoomRepository` and apply `implementRoom(libs)`.+**How to use:** `abstract class XxxRepository : RoomRepository` → `implementRoom(libs)` in the module build file → committed schemas under the app's `schemas/` (read single files only, never scan).+**Entry points:** `RoomRepository.kt` → `SqlCipher.kt`.+**Gotchas:** The literal string `androidx.room.` is lint-flagged even in comments — write `Room` in prose. Schema migrations must be tested with the actual old DB, not fresh installs. -- com/vayunmathur/library/room/RoomRepository.kt+## Key files+- com/vayunmathur/library/room/RoomRepository.kt — subclass this, never `buildDatabase()` - com/vayunmathur/library/room/SqlCipher.kt - com/vayunmathur/library/room/SqlCipherDbCodec.kt @@ -20,5 +26,3 @@ ./gradlew :library:room:compileDevKotlin ./gradlew :library:room:lint ```--