Skip to content

Commit 0008849

Browse files
committed
chore: lint #603
1 parent cd1eef1 commit 0008849

4 files changed

Lines changed: 4 additions & 3 deletions

File tree

app/src/main/java/to/bitkit/services/RNBackupClient.kt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ import to.bitkit.utils.AppError
2727
import to.bitkit.utils.Crypto
2828
import to.bitkit.utils.Logger
2929
import javax.crypto.Cipher
30-
import javax.crypto.Mac
3130
import javax.crypto.spec.GCMParameterSpec
3231
import javax.crypto.spec.SecretKeySpec
3332
import javax.inject.Inject
@@ -48,8 +47,6 @@ class RNBackupClient @Inject constructor(
4847
private const val SIGNED_MESSAGE_PREFIX = "react-native-ldk backup server auth:"
4948
private const val GCM_IV_LENGTH = 12
5049
private const val GCM_TAG_LENGTH = 16
51-
private const val PBKDF2_ITERATIONS = 2048
52-
private const val PBKDF2_KEY_LENGTH_BITS = 512
5350
}
5451

5552
@Volatile

app/src/main/java/to/bitkit/utils/timedsheets/sheets/AppUpdateTimedSheet.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ class AppUpdateTimedSheet @Inject constructor(
1717
override val type = TimedSheetType.APP_UPDATE
1818
override val priority = 5
1919

20+
@Suppress("TooGenericExceptionCaught")
2021
override suspend fun shouldShow(): Boolean = withContext(bgDispatcher) {
2122
try {
2223
val androidReleaseInfo = appUpdaterService.getReleaseInfo().platforms.android

app/src/main/java/to/bitkit/viewmodels/AppViewModel.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -881,6 +881,7 @@ class AppViewModel @Inject constructor(
881881
}
882882
}
883883

884+
@Suppress("LongMethod")
884885
private suspend fun onScanOnchain(invoice: OnChainInvoice, scanResult: String) {
885886
val lnInvoice: LightningInvoice? = invoice.params?.get("lightning")?.let { bolt11 ->
886887
runCatching { decode(bolt11) }.getOrNull()
@@ -1231,6 +1232,7 @@ class AppViewModel @Inject constructor(
12311232
}
12321233
}
12331234

1235+
@Suppress("LongMethod", "CyclomaticComplexMethod", "ReturnCount")
12341236
private suspend fun handleSanityChecks(amountSats: ULong) {
12351237
if (_sendUiState.value.showSanityWarningDialog != null) return
12361238

app/src/main/java/to/bitkit/viewmodels/WalletViewModel.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ import kotlin.coroutines.cancellation.CancellationException
4646
import kotlin.time.Duration.Companion.milliseconds
4747
import kotlin.time.Duration.Companion.seconds
4848

49+
@Suppress("LongParameterList")
4950
@HiltViewModel
5051
class WalletViewModel @Inject constructor(
5152
@ApplicationContext private val context: Context,

0 commit comments

Comments
 (0)