Modern Apps git
git clone https://git.maproj.org/Modern-Apps.git
cov/c3 ▾

Modern-Apps.git / library / work / AGENTS.md

AGENTS.md1.3 KiBRenderedCodeRaw
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<!-- last-reviewed: 2026-10-16 -->
6- Gradle: :library:work / dir: library/work/
7- Package roots present: (WorkManager helpers — one package)
8- Entry files: Work.kt (no MainActivity/Route — library)
9- Deps: :library (permission-free; daily-reminder notification resources come from base, #884)
10- Metadata: metadata_data/library-work.md (absent — libraries have none by design)
11- Rust: no / screenshotTest: no
12
13## Overview
14**Purpose:** Shared WorkManager helpers — scheduling wrappers plus the daily-puzzle reminder used by games. Thin by design; app workers live in consumers.
15**How to use:** Schedule via `Work.kt` helpers; daily game content via `DailyPuzzleReminder`.
16**Entry points:** `Work.kt` → `DailyPuzzleReminder.kt`.
17**Gotchas:** WorkManager restores jobs across reboots itself — `BootReceiver` re-scheduling (everysync, clock, calendar) is belt-and-suspenders, keep both.
18
19## Key files
20- com/vayunmathur/library/work/Work.kt
21- com/vayunmathur/library/work/DailyPuzzleReminder.kt
22
23## Verify (this module only)
24```
25./gradlew :library:work:compileDevKotlin
26./gradlew :library:work:lint
27```