Modern Apps git

← Modern-Apps.git

updater: fix detekt findings

Commit
44f24f7212247292db611adae00bdd7ea58653d4
Author
Vayun Mathur <[email protected]>
When
2026-11-17 15:16 UTC (19 days ago)
Parents
9e4dd8b
Fixes every error-severity detekt finding in updater (inventory clusters C3/C4): named constants for magic numbers, extracted functions/composables for long/complex methods, wrapped long lines, removed unused parameters, and narrowed/logged exception handling. No detekt config, baseline or suppression changes; behaviour preserved.

Verified: ./check updater and :updater:testDevUnitTest green.

Diff

updater/src/main/java/com/vayunmathur/updater/platform/SystemBuild.kt
diff --git a/updater/src/main/java/com/vayunmathur/updater/platform/SystemBuild.kt b/updater/src/main/java/com/vayunmathur/updater/platform/SystemBuild.ktindex 24e268ba9a..4895a45b8a 100644--- a/updater/src/main/java/com/vayunmathur/updater/platform/SystemBuild.kt+++ b/updater/src/main/java/com/vayunmathur/updater/platform/SystemBuild.kt@@ -14,7 +14,8 @@ private const val TAG = "SystemBuild"  * anyway: a failure here should degrade to "cannot check for updates", never crash a background  * job.  */-@SuppressLint("PrivateApi") // Hidden SystemProperties has no public/stubbable accessor; every read fails soft to ""/0 (see class doc).+@SuppressLint("PrivateApi") // Hidden SystemProperties has no public/stubbable accessor;+// every read fails soft to ""/0 (see class doc). object SystemBuild {      /**