Modern Apps git

← Modern-Apps.git

games/hub: document public API for detekt

Commit
a6963cabcd1f4b94b465524b9e7de6827a9354ce
Author
Vayun Mathur <[email protected]>
When
2026-11-17 14:42 UTC (19 days ago)
Parents
f2ddb78
Add concise KDoc to every public class, object, interface and
enum (including nested types) that detekt's
UndocumentedPublicClass rule flagged in this module. Docs only:
no behaviour, visibility or config changes.

Verified: ./gradlew :games:hub:detekt reports 0
UndocumentedPublicClass findings (pre-existing error-severity
findings in other rules, where present, are untouched), and the
module unit tests pass.

Diff

games/hub/src/main/java/com/vayunmathur/games/hub/MainActivity.kt
diff --git a/games/hub/src/main/java/com/vayunmathur/games/hub/MainActivity.kt b/games/hub/src/main/java/com/vayunmathur/games/hub/MainActivity.ktindex 8a62998f4a..3b2f54dc0d 100644--- a/games/hub/src/main/java/com/vayunmathur/games/hub/MainActivity.kt+++ b/games/hub/src/main/java/com/vayunmathur/games/hub/MainActivity.kt@@ -52,18 +52,29 @@ class MainActivity : MaActivity() { /** Contract for main route. */ @Serializable sealed interface MainRoute : NavKey {+    /** Hub dashboard route. */     @Serializable data object Dashboard : MainRoute+    /** Games list route. */     @Serializable data object Games : MainRoute+    /** All-games achievements route. */     @Serializable data object Achievements : MainRoute+    /** Player profile route. */     @Serializable data object Profile : MainRoute+    /** Yuu companion route. */     @Serializable data object Yuu : MainRoute+    /** Detail route for the game identified by [gameId]. */     @Serializable data class GameDetail(val gameId: String) : MainRoute+    /** Achievements route for the game identified by [gameId]. */     @Serializable data class AchievementsForGame(val gameId: String) : MainRoute+    /** Activity feed route. */     @Serializable data object Activity : MainRoute+    /** Hub settings route. */     @Serializable data object Settings : MainRoute     /** The phone-as-controller screen (hub hosts the SDK ControllerPad). */     @Serializable data object PlayOnTv : MainRoute+    /** Route to create a new Yuu. */     @Serializable data object YuuEditorNew : MainRoute+    /** Route to edit the Yuu identified by [yuuId]. */     @Serializable data class YuuEditorEdit(val yuuId: Long) : MainRoute }