Modern Apps git

← Modern-Apps.git

weartiles: tile services live in service/, not widget/

Commit
143b6d8f4d92728bdd16637f5638536c15a5f190
Author
Vayun Mathur <[email protected]>
When
2026-12-06 03:47 UTC (9 hours ago)
Parents
ad5a55e
The repo PackageStructure lint reserves widget/ for files
declaring a MaWidget subclass with its receiver, so a Wear
TileService does not belong there. Tile services are services
(the Quick Settings tiles already live in service/), so the
shared-seam doc now names service/<App>TileService as the
per-app placement. No code change.

Verified: :weather:lint green with its tile in service/.

Diff

library/weartiles/AGENTS.md
diff --git a/library/weartiles/AGENTS.md b/library/weartiles/AGENTS.mdindex 2fbf420b21..a75f075163 100644--- a/library/weartiles/AGENTS.md+++ b/library/weartiles/AGENTS.md@@ -17,7 +17,7 @@ app's wear-side store (conduit-synced JSON in app-private storage) is the data source, exactly as phone widgets render from cache alone.  ## How to use-Each app declares one `widget/<App>TileService.kt` subclass of+Each app declares one `service/<App>TileService.kt` subclass of `MaTileService` in its own module/manifest (tiles belong to each app like phone widgets do; the Watch conduit app owns no other app's tile): override `loadSnapshot()` (read the wear store, map to `TileSnapshot`),