diff --git a/build.gradle b/build.gradle index f6a6ae19..5ed2fccf 100644 --- a/build.gradle +++ b/build.gradle @@ -18,16 +18,16 @@ buildscript { ], android: [ appcompat : '1.1.0', - annotation : '1.1.0', - exifinterface : '1.0.0' + annotation : '1.4.0', + exifinterface : '1.3.3' ], rx : [ rxJava1: '1.3.8', rxJava2: '2.2.12' ], test : [ - junit : '4.12', - mockito: '2.23.0' + junit : '4.13.2', + mockito: '3.9.0' ] ] } diff --git a/fotoapparat/build.gradle b/fotoapparat/build.gradle index 0d13df60..5771670b 100644 --- a/fotoapparat/build.gradle +++ b/fotoapparat/build.gradle @@ -30,7 +30,7 @@ dependencies { implementation "androidx.annotation:annotation:${versions.android.annotation}" implementation "androidx.exifinterface:exifinterface:${versions.android.exifinterface}" implementation "org.jetbrains.kotlin:kotlin-stdlib:${versions.kotlin}" - implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.0' + implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.1' testImplementation "junit:junit:${versions.test.junit}" testImplementation "org.jetbrains.kotlin:kotlin-test-junit:${versions.kotlin}" testImplementation "org.mockito:mockito-core:${versions.test.mockito}" diff --git a/fotoapparat/src/main/java/io/fotoapparat/coroutines/AwaitBroadcastChannel.kt b/fotoapparat/src/main/java/io/fotoapparat/coroutines/AwaitBroadcastChannel.kt index f22bbaf1..793e5ff4 100644 --- a/fotoapparat/src/main/java/io/fotoapparat/coroutines/AwaitBroadcastChannel.kt +++ b/fotoapparat/src/main/java/io/fotoapparat/coroutines/AwaitBroadcastChannel.kt @@ -23,7 +23,7 @@ internal class AwaitBroadcastChannel( override fun offer(element: T): Boolean { deferred.complete(true) - return channel.offer(element) + return channel.trySend(element).isSuccess } override suspend fun send(element: T) {