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

Modern-Apps.git / sdk / games / AGENTS.md

AGENTS.md1.3 KiBRenderedCodeRaw
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<!-- last-reviewed: 2026-10-16 -->
6- Gradle: :sdk:games / dir: sdk/games/
7- Package roots present: (public games SDK — one package)
8- Entry files: GameHubClient.kt + GameHubContract.kt (no MainActivity/Route — SDK)
9- Deps: (none)
10- Metadata: metadata_data/sdk-games.md (absent — SDKs have none by design)
11- Rust: no / screenshotTest: no
12
13## Overview
14**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.
15**Consumers:** Every `games/*` module (`*AchievementsManager` → `GameHubClient`); hub reads via the contract.
16**Entry points:** `GameHubContract.kt` → `GameHubClient.kt` → `GameCenter.kt`.
17**Gotchas:** Contract changes must stay compatible with all 11 games + hub simultaneously — version the contract, never break it silently.
18
19## Key files
20- com/vayunmathur/sdk/games/GameHubContract.kt — the IPC contract (stability matters)
21- com/vayunmathur/sdk/games/GameHubClient.kt
22- com/vayunmathur/sdk/games/GameCenter.kt
23- com/vayunmathur/sdk/games/Models.kt
24
25## Verify (this module only)
26```
27./gradlew :sdk:games:compileDevKotlin
28./gradlew :sdk:games:lint
29```