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

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

AGENTS.md1.3 KiBRenderedCodeRaw

AGENTS.md — library/work/ (':library:work')

Scoped supplement. Global rules in root AGENTS.md apply. Stay inside library/work/ + allowed shared modules. Do not root-scan.

  • Gradle: :library:work / dir: library/work/
  • Package roots present: (WorkManager helpers — one package)
  • Entry files: Work.kt (no MainActivity/Route — library)
  • Deps: :library (permission-free; daily-reminder notification resources come from base)
  • Metadata: metadata_data/library-work.md (absent — libraries have none by design)
  • Rust: no / screenshotTest: no

Overview

Purpose: Shared WorkManager helpers — scheduling wrappers plus the daily-puzzle reminder used by games. Thin by design; app workers live in consumers. How to use: Schedule via Work.kt helpers; daily game content via DailyPuzzleReminder. Entry points: Work.kt → DailyPuzzleReminder.kt. Gotchas: WorkManager restores jobs across reboots itself — BootReceiver re-scheduling (everysync, clock, calendar) is belt-and-suspenders, keep both.

Key files

  • com/vayunmathur/library/work/Work.kt
  • com/vayunmathur/library/work/DailyPuzzleReminder.kt

Verify (this module only)

./gradlew :library:work:compileDebugKotlin
./gradlew :library:work:testDebugUnitTest
./gradlew :library:work:lint