diff --git a/app/src/androidTest/kotlin/com/x8bit/bitwarden/android/authenticator/ExampleInstrumentedTest.kt b/app/src/androidTest/kotlin/com/x8bit/bitwarden/android/authenticator/ExampleInstrumentedTest.kt index 7504cc963..a4f1a26dd 100644 --- a/app/src/androidTest/kotlin/com/x8bit/bitwarden/android/authenticator/ExampleInstrumentedTest.kt +++ b/app/src/androidTest/kotlin/com/x8bit/bitwarden/android/authenticator/ExampleInstrumentedTest.kt @@ -128,6 +128,7 @@ class ExampleInstrumentedTest { Screengrab.screenshot("UniqueCodesSlide_Light") } + @Suppress("UndocumentedPublicClass") companion object { @JvmField @ClassRule diff --git a/app/src/main/kotlin/com/bitwarden/authenticator/data/authenticator/datasource/disk/entity/AuthenticatorItemAlgorithm.kt b/app/src/main/kotlin/com/bitwarden/authenticator/data/authenticator/datasource/disk/entity/AuthenticatorItemAlgorithm.kt index b9a06c3b5..fd7e0eda2 100644 --- a/app/src/main/kotlin/com/bitwarden/authenticator/data/authenticator/datasource/disk/entity/AuthenticatorItemAlgorithm.kt +++ b/app/src/main/kotlin/com/bitwarden/authenticator/data/authenticator/datasource/disk/entity/AuthenticatorItemAlgorithm.kt @@ -21,6 +21,7 @@ enum class AuthenticatorItemAlgorithm { SHA512, ; + @Suppress("UndocumentedPublicClass") companion object { /** * Returns a [AuthenticatorItemAlgorithm] with a name matching [value], or null. diff --git a/app/src/main/kotlin/com/bitwarden/authenticator/data/authenticator/datasource/disk/entity/AuthenticatorItemType.kt b/app/src/main/kotlin/com/bitwarden/authenticator/data/authenticator/datasource/disk/entity/AuthenticatorItemType.kt index 7d6a7be7f..b3c798b3c 100644 --- a/app/src/main/kotlin/com/bitwarden/authenticator/data/authenticator/datasource/disk/entity/AuthenticatorItemType.kt +++ b/app/src/main/kotlin/com/bitwarden/authenticator/data/authenticator/datasource/disk/entity/AuthenticatorItemType.kt @@ -16,6 +16,7 @@ enum class AuthenticatorItemType { STEAM, ; + @Suppress("UndocumentedPublicClass") companion object { /** diff --git a/app/src/main/kotlin/com/bitwarden/authenticator/data/authenticator/manager/TotpCodeManager.kt b/app/src/main/kotlin/com/bitwarden/authenticator/data/authenticator/manager/TotpCodeManager.kt index c626c0712..6f9fa0fe8 100644 --- a/app/src/main/kotlin/com/bitwarden/authenticator/data/authenticator/manager/TotpCodeManager.kt +++ b/app/src/main/kotlin/com/bitwarden/authenticator/data/authenticator/manager/TotpCodeManager.kt @@ -25,6 +25,7 @@ interface TotpCodeManager { item: AuthenticatorItemEntity, ): StateFlow> + @Suppress("UndocumentedPublicClass") companion object { const val ALGORITHM_PARAM = "algorithm" const val DIGITS_PARAM = "digits" diff --git a/app/src/main/kotlin/com/bitwarden/authenticator/data/platform/datasource/disk/BaseDiskSource.kt b/app/src/main/kotlin/com/bitwarden/authenticator/data/platform/datasource/disk/BaseDiskSource.kt index 6b1d28f15..e925eadd6 100644 --- a/app/src/main/kotlin/com/bitwarden/authenticator/data/platform/datasource/disk/BaseDiskSource.kt +++ b/app/src/main/kotlin/com/bitwarden/authenticator/data/platform/datasource/disk/BaseDiskSource.kt @@ -121,6 +121,7 @@ abstract class BaseDiskSource( .forEach { sharedPreferences.edit { remove(it) } } } + @Suppress("UndocumentedPublicClass") companion object { const val BASE_KEY: String = "bwPreferencesStorage" } diff --git a/app/src/main/kotlin/com/bitwarden/authenticator/data/platform/datasource/disk/BaseEncryptedDiskSource.kt b/app/src/main/kotlin/com/bitwarden/authenticator/data/platform/datasource/disk/BaseEncryptedDiskSource.kt index 2a830d00a..bcb18feae 100644 --- a/app/src/main/kotlin/com/bitwarden/authenticator/data/platform/datasource/disk/BaseEncryptedDiskSource.kt +++ b/app/src/main/kotlin/com/bitwarden/authenticator/data/platform/datasource/disk/BaseEncryptedDiskSource.kt @@ -25,6 +25,7 @@ abstract class BaseEncryptedDiskSource( value: String?, ): Unit = encryptedSharedPreferences.edit { putString(key, value) } + @Suppress("UndocumentedPublicClass") companion object { const val ENCRYPTED_BASE_KEY: String = "bwSecureStorage" } diff --git a/app/src/main/kotlin/com/bitwarden/authenticator/ui/authenticator/feature/edititem/EditItemViewModel.kt b/app/src/main/kotlin/com/bitwarden/authenticator/ui/authenticator/feature/edititem/EditItemViewModel.kt index 11bc0925a..ffad1271b 100644 --- a/app/src/main/kotlin/com/bitwarden/authenticator/ui/authenticator/feature/edititem/EditItemViewModel.kt +++ b/app/src/main/kotlin/com/bitwarden/authenticator/ui/authenticator/feature/edititem/EditItemViewModel.kt @@ -426,6 +426,7 @@ data class EditItemState( ) : DialogState() } + @Suppress("UndocumentedPublicClass") companion object { const val MIN_ALLOWED_CODE_DIGITS = 5 const val MAX_ALLOWED_CODE_DIGITS = 10 @@ -547,6 +548,7 @@ enum class AuthenticatorRefreshPeriodOption(val seconds: Int) { NINETY(seconds = 90), ; + @Suppress("UndocumentedPublicClass") companion object { /** * Returns a [AuthenticatorRefreshPeriodOption] with the provided [seconds], or null. diff --git a/app/src/main/kotlin/com/bitwarden/authenticator/ui/authenticator/feature/search/handlers/SearchHandlers.kt b/app/src/main/kotlin/com/bitwarden/authenticator/ui/authenticator/feature/search/handlers/SearchHandlers.kt index cc3eaf96d..484d02e4b 100644 --- a/app/src/main/kotlin/com/bitwarden/authenticator/ui/authenticator/feature/search/handlers/SearchHandlers.kt +++ b/app/src/main/kotlin/com/bitwarden/authenticator/ui/authenticator/feature/search/handlers/SearchHandlers.kt @@ -16,6 +16,7 @@ class SearchHandlers( * Creates an instance of [SearchHandlers] by binding actions to the provided * [ItemSearchViewModel]. */ + @Suppress("UndocumentedPublicClass") companion object { /** * Creates an instance of [SearchHandlers] by binding actions to the provided diff --git a/app/src/main/kotlin/com/bitwarden/authenticator/ui/platform/feature/settings/SettingsViewModel.kt b/app/src/main/kotlin/com/bitwarden/authenticator/ui/platform/feature/settings/SettingsViewModel.kt index ef28806e1..732147228 100644 --- a/app/src/main/kotlin/com/bitwarden/authenticator/ui/platform/feature/settings/SettingsViewModel.kt +++ b/app/src/main/kotlin/com/bitwarden/authenticator/ui/platform/feature/settings/SettingsViewModel.kt @@ -226,6 +226,7 @@ class SettingsViewModel @Inject constructor( ) } + @Suppress("UndocumentedPublicClass") companion object { private fun createInitialState( clock: Clock, diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 71afeb537..133bd5c86 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -28,7 +28,7 @@ androdixAutofill = "1.1.0" androidxWork = "2.9.1" bitwardenSdk = "0.4.0-20240314.115913-173" crashlytics = "3.0.2" -detekt = "1.23.6" +detekt = "1.23.7" espresso = "3.6.1" fastlaneScreengrab = "2.1.1" firebaseBom = "33.2.0"