Modern Apps git

← Modern-Apps.git

office: document public API for detekt

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

Diff

office/src/main/java/com/vayunmathur/office/MainActivity.kt
diff --git a/office/src/main/java/com/vayunmathur/office/MainActivity.kt b/office/src/main/java/com/vayunmathur/office/MainActivity.ktindex e8c33ba906..11697809c8 100644--- a/office/src/main/java/com/vayunmathur/office/MainActivity.kt+++ b/office/src/main/java/com/vayunmathur/office/MainActivity.kt@@ -15,6 +15,7 @@ import com.vayunmathur.office.platform.requestToJoin import com.vayunmathur.office.ui.OfficeAppTheme  import com.vayunmathur.office.data.odf.DocumentImporter+/** Entry activity hosting Office home, join-link handling and document editing. */ class MainActivity : MaActivity() {     private val viewModel: OfficeViewModel by viewModels()     private var intentDocumentUri: Uri? = null
office/src/main/java/com/vayunmathur/office/sync/OfficeSync.kt
diff --git a/office/src/main/java/com/vayunmathur/office/sync/OfficeSync.kt b/office/src/main/java/com/vayunmathur/office/sync/OfficeSync.ktindex 4268975d8a..da05b49d74 100644--- a/office/src/main/java/com/vayunmathur/office/sync/OfficeSync.kt+++ b/office/src/main/java/com/vayunmathur/office/sync/OfficeSync.kt@@ -282,6 +282,7 @@ object OfficeSync {     @Serializable private data class SeqResp(val seq: Int = 0)     @Serializable internal data class PullResp(val actions: List<String> = emptyList(), val seq: Int = 0) +    /** Document action exchanged over the sync channel; a flattened snapshot by default. */     @Serializable data class DocAction(val type: String = "snapshot", val flat: String = "")      /** A document-sharing invite: the doc, its key and the invited role. */