Modern-Apps.git
Publicgit clone https://git.maproj.org/Modern-Apps.gitModern-Apps.git / sdk / cast / AGENTS.md
| 1 | # AGENTS.md — sdk/cast/ (':sdk:cast') |
| 2 | |
| 3 | > Scoped supplement. Global rules in root `AGENTS.md` apply. Stay inside `sdk/cast/` + allowed shared modules. Do not root-scan. |
| 4 | |
| 5 | - Gradle: :sdk:cast / dir: sdk/cast/ |
| 6 | - Package roots present: (public cast SDK — one package) |
| 7 | - Entry files: CastClient.kt + CastContract.kt (no MainActivity/Route — SDK) |
| 8 | - Deps: (none) |
| 9 | - Metadata: metadata_data/sdk-cast.md (absent — SDKs have none by design) |
| 10 | - Rust: no / screenshotTest: no |
| 11 | |
| 12 | ## Overview |
| 13 | **Purpose:** Public SDK third-party apps use to hand media to the TV through `cast/` — client + picker + playback contracts over the `:cast:protocol` session. |
| 14 | **Consumers:** `music/` (`CastPlayback`), youpipe, any app handing media to `cast/tv`. |
| 15 | **Entry points:** `CastContract.kt` → `CastClient.kt` → `Playback.kt`. |
| 16 | **Gotchas:** Contract stability across sender + receiver + third-party callers — same lockstep rule as `:cast:protocol`. |
| 17 | |
| 18 | ## Key files |
| 19 | - com/vayunmathur/sdk/cast/CastContract.kt — the handoff contract |
| 20 | - com/vayunmathur/sdk/cast/CastClient.kt |
| 21 | - com/vayunmathur/sdk/cast/CastPickerContract.kt |
| 22 | - com/vayunmathur/sdk/cast/CastResource.kt |
| 23 | - com/vayunmathur/sdk/cast/Playback.kt |
| 24 | - com/vayunmathur/sdk/cast/Exceptions.kt |
| 25 | |
| 26 | ## Verify (this module only) |
| 27 | ``` |
| 28 | ./gradlew :sdk:cast:compileDevKotlin |
| 29 | ./gradlew :sdk:cast:lint |
| 30 | ``` |