Suppress Gradle lint warnings (#5767)

This commit is contained in:
Patrick Honkonen 2025-08-20 17:54:37 -04:00 committed by GitHub
parent bc5788556c
commit bc67bf3dff
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 0 deletions

View File

@ -328,6 +328,7 @@ private fun renameFile(path: String, newName: String) {
if (originalFile.renameTo(newFile)) {
println("Renamed $originalFile to $newFile")
} else {
@Suppress("TooGenericExceptionThrown")
throw RuntimeException("Failed to rename $originalFile to $newFile")
}
}

View File

@ -81,6 +81,7 @@ android {
debug {
applicationIdSuffix = ".dev"
manifestPlaceholders["targetBitwardenAppId"] = "com.x8bit.bitwarden.dev"
@Suppress("MaxLineLength")
buildConfigField(
type = "com.bitwarden.authenticatorbridge.manager.model.AuthenticatorBridgeConnectionType",
name = "AUTHENTICATOR_BRIDGE_CONNECTION_TYPE",
@ -94,6 +95,7 @@ android {
release {
manifestPlaceholders["targetBitwardenAppId"] = "com.x8bit.bitwarden"
@Suppress("MaxLineLength")
buildConfigField(
type = "com.bitwarden.authenticatorbridge.manager.model.AuthenticatorBridgeConnectionType",
name = "AUTHENTICATOR_BRIDGE_CONNECTION_TYPE",
@ -275,6 +277,7 @@ private fun renameFile(path: String, newName: String) {
if (originalFile.renameTo(newFile)) {
println("Renamed $originalFile to $newFile")
} else {
@Suppress("TooGenericExceptionThrown")
throw RuntimeException("Failed to rename $originalFile to $newFile")
}
}