Modern-Apps.git
Publicgit clone https://git.maproj.org/Modern-Apps.gitModern-Apps.git / sdk / games / AGENTS.md
| 1 | # AGENTS.md — sdk/games/ (':sdk:games') |
| 2 | |
| 3 | > Scoped supplement. Global rules in root `AGENTS.md` apply. Stay inside `sdk/games/` + allowed shared modules. Do not root-scan. |
| 4 | |
| 5 | - Gradle: :sdk:games / dir: sdk/games/ |
| 6 | - Package roots present: (public games SDK — one package) |
| 7 | - Entry files: GameHubClient.kt + GameHubContract.kt (no MainActivity/Route — SDK) |
| 8 | - Deps: (none) |
| 9 | - Metadata: metadata_data/sdk-games.md (absent — SDKs have none by design) |
| 10 | - Rust: no / screenshotTest: no |
| 11 | |
| 12 | ## Overview |
| 13 | **Purpose:** Public SDK games use to report achievements/progress to `games/hub` over local IPC — the contract side; the hub's `provider/GamesHubProvider` is the sink side. |
| 14 | **Consumers:** Every `games/*` module (`*AchievementsManager` → `GameHubClient`); hub reads via the contract. |
| 15 | **Entry points:** `GameHubContract.kt` → `GameHubClient.kt` → `GameCenter.kt`. |
| 16 | **Gotchas:** Contract changes must stay compatible with all 11 games + hub simultaneously — version the contract, never break it silently. |
| 17 | |
| 18 | ## Key files |
| 19 | - com/vayunmathur/sdk/games/GameHubContract.kt — the IPC contract (stability matters) |
| 20 | - com/vayunmathur/sdk/games/GameHubClient.kt |
| 21 | - com/vayunmathur/sdk/games/GameCenter.kt |
| 22 | - com/vayunmathur/sdk/games/Models.kt |
| 23 | |
| 24 | ## Verify (this module only) |
| 25 | ``` |
| 26 | ./gradlew :sdk:games:compileDevKotlin |
| 27 | ./gradlew :sdk:games:lint |
| 28 | ``` |