build(deps): bump kotlinx-coroutines-test from 1.6.0-RC to 1.6.0-RC2 (#1586)

This commit is contained in:
dependabot[bot] 2021-12-10 17:54:45 +00:00 committed by GitHub
parent 8db0b67ce9
commit b59c4f068c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 14 additions and 10 deletions

View file

@ -31,6 +31,7 @@ import kotlin.time.ExperimentalTime
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.delay
import kotlinx.coroutines.flow.collect
import kotlinx.coroutines.flow.onEach
import kotlinx.coroutines.launch
import kotlinx.coroutines.withContext
import logcat.LogPriority.ERROR
@ -209,9 +210,10 @@ class DecryptActivity : BasePgpActivity(), OpenPgpServiceConnection.OnBound {
if (entry.hasTotp()) {
lifecycleScope.launch {
entry.totp.collect { code ->
withContext(Dispatchers.Main) { adapter.updateOTPCode(code) }
}
entry
.totp
.onEach { code -> withContext(Dispatchers.Main) { adapter.updateOTPCode(code) } }
.collect()
}
}
}

View file

@ -28,6 +28,7 @@ import kotlin.time.ExperimentalTime
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.delay
import kotlinx.coroutines.flow.collect
import kotlinx.coroutines.flow.onEach
import kotlinx.coroutines.launch
import kotlinx.coroutines.withContext
@ -169,9 +170,10 @@ class DecryptActivityV2 : BasePgpActivity() {
if (entry.hasTotp()) {
lifecycleScope.launch {
entry.totp.collect { code ->
withContext(Dispatchers.Main) { adapter.updateOTPCode(code) }
}
entry
.totp
.onEach { code -> withContext(Dispatchers.Main) { adapter.updateOTPCode(code) } }
.collect()
}
}
}

View file

@ -18,8 +18,8 @@ dependencies {
dependencySync("org.jetbrains.kotlinx:kover:0.4.4")
// Kotlin dependencies
dependencySync("org.jetbrains.kotlinx:kotlinx-coroutines-android:1.6.0-RC")
dependencySync("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.0-RC")
dependencySync("org.jetbrains.kotlinx:kotlinx-coroutines-android:1.6.0-RC2")
dependencySync("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.0-RC2")
// AndroidX dependencies
dependencySync("androidx.activity:activity-ktx:1.4.0")
@ -97,5 +97,5 @@ dependencies {
dependencySync("com.github.android-password-store:shared-preferences-fake:2.0.0")
dependencySync("androidx.test:rules:1.4.1-alpha03")
dependencySync("androidx.test:runner:1.4.1-alpha03")
dependencySync("org.jetbrains.kotlinx:kotlinx-coroutines-test:1.6.0-RC")
dependencySync("org.jetbrains.kotlinx:kotlinx-coroutines-test:1.6.0-RC2")
}

View file

@ -4,7 +4,7 @@ androidx_activity = "1.4.0"
androidx_test = "1.4.1-alpha03"
compose = "1.1.0-beta04"
composeSnapshot = "-"
coroutines = "1.6.0-RC"
coroutines = "1.6.0-RC2"
flowbinding = "1.2.0"
hilt = "2.40.5"
kotlin = "1.6.0"