Modern-Apps.git
Publicgit clone https://git.maproj.org/Modern-Apps.gitModern-Apps.git / library / work / AGENTS.md
| 1 | # AGENTS.md — library/work/ (':library:work') |
| 2 | |
| 3 | > Scoped supplement. Global rules in root `AGENTS.md` apply. Stay inside `library/work/` + allowed shared modules. Do not root-scan. |
| 4 | |
| 5 | - Gradle: :library:work / dir: library/work/ |
| 6 | - Package roots present: (WorkManager helpers — one package) |
| 7 | - Entry files: Work.kt (no MainActivity/Route — library) |
| 8 | - Deps: :library (permission-free; daily-reminder notification resources come from base) |
| 9 | - Metadata: metadata_data/library-work.md (absent — libraries have none by design) |
| 10 | - Rust: no / screenshotTest: no |
| 11 | |
| 12 | ## Overview |
| 13 | **Purpose:** Shared WorkManager helpers — scheduling wrappers plus the daily-puzzle reminder used by games. Thin by design; app workers live in consumers. |
| 14 | **How to use:** Schedule via `Work.kt` helpers; daily game content via `DailyPuzzleReminder`. |
| 15 | **Entry points:** `Work.kt` → `DailyPuzzleReminder.kt`. |
| 16 | **Gotchas:** WorkManager restores jobs across reboots itself — `BootReceiver` re-scheduling (everysync, clock, calendar) is belt-and-suspenders, keep both. |
| 17 | |
| 18 | ## Key files |
| 19 | - com/vayunmathur/library/work/Work.kt |
| 20 | - com/vayunmathur/library/work/DailyPuzzleReminder.kt |
| 21 | |
| 22 | ## Verify (this module only) |
| 23 | ``` |
| 24 | ./gradlew :library:work:compileDebugKotlin |
| 25 | ./gradlew :library:work:testDebugUnitTest |
| 26 | ./gradlew :library:work:lint |
| 27 | ``` |