Modern Apps git

← Modern-Apps.git

networklocation: document public API for detekt

Commit
7d7fd1c53aedff69d432924500eca88110eea6d9
Author
Vayun Mathur <[email protected]>
When
2026-11-17 14:42 UTC (19 days ago)
Parents
fc2cf1c
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 :networklocation:detekt reports 0
UndocumentedPublicClass findings (pre-existing error-severity
findings in other rules, where present, are untouched), and the
module unit tests pass.

Diff

networklocation/src/main/java/com/vayunmathur/networklocation/Route.kt
diff --git a/networklocation/src/main/java/com/vayunmathur/networklocation/Route.kt b/networklocation/src/main/java/com/vayunmathur/networklocation/Route.ktindex f2987d39ef..9eae7ca3c7 100644--- a/networklocation/src/main/java/com/vayunmathur/networklocation/Route.kt+++ b/networklocation/src/main/java/com/vayunmathur/networklocation/Route.kt@@ -3,6 +3,7 @@ package com.vayunmathur.networklocation import com.vayunmathur.library.util.NavKey import kotlinx.serialization.Serializable +/** Navigation routes for offline-database setup and location status. */ @Serializable sealed interface Route : NavKey {     /** Offline-database download. Shown until every database is on disk. */
networklocation/src/main/java/com/vayunmathur/networklocation/domain/PositioningData.kt
diff --git a/networklocation/src/main/java/com/vayunmathur/networklocation/domain/PositioningData.kt b/networklocation/src/main/java/com/vayunmathur/networklocation/domain/PositioningData.ktindex 4472c125d3..ae77cda0b3 100644--- a/networklocation/src/main/java/com/vayunmathur/networklocation/domain/PositioningData.kt+++ b/networklocation/src/main/java/com/vayunmathur/networklocation/domain/PositioningData.kt@@ -26,6 +26,7 @@ private const val WIRE_UMTS = 2 private const val WIRE_LTE = 3 private const val WIRE_NR = 4 +/** Cellular radio access technology, part of a cell beacon's identity and wire key. */ enum class RadioType(val wire: Int) {     GSM(WIRE_GSM),     UMTS(WIRE_UMTS),@@ -36,6 +37,7 @@ enum class RadioType(val wire: Int) {  /** A radio beacon we can resolve to a location: a WiFi access point or a cell tower. */ sealed interface BeaconId {+    /** Wi-Fi beacon identified by its BSSID. */     data class Wifi(val bssid: String) : BeaconId      /**