From 82602dae38b41024efb0adfa5833c00c289d54f8 Mon Sep 17 00:00:00 2001 From: Vasily Laushkin Date: Fri, 29 Jul 2022 23:17:53 +0300 Subject: [PATCH] update dependencies --- build.gradle | 8 ++++---- fotoapparat/build.gradle | 2 +- .../io/fotoapparat/coroutines/AwaitBroadcastChannel.kt | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) 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) {