Skip to content

Commit 177913d

Browse files
Prepare release 1.0.10 (#1134)
1 parent b7a3943 commit 177913d

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

buildSrc/src/main/kotlin/io/getstream/video/android/Configuration.kt

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ object Configuration {
66
const val minSdk = 24
77
const val majorVersion = 1
88
const val minorVersion = 0
9-
const val patchVersion = 9
9+
const val patchVersion = 10
1010
const val versionName = "$majorVersion.$minorVersion.$patchVersion"
11-
const val versionCode = 33
11+
const val versionCode = 34
1212
const val snapshotVersionName = "$majorVersion.$minorVersion.${patchVersion + 1}-SNAPSHOT"
1313
const val artifactGroup = "io.getstream"
1414
const val streamVideoCallGooglePlayVersion = "1.1.4"

stream-video-android-core/src/main/kotlin/io/getstream/video/android/core/StreamVideoImpl.kt

+5-2
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ import io.getstream.video.android.model.User
6363
import kotlinx.coroutines.CoroutineScope
6464
import kotlinx.coroutines.Deferred
6565
import kotlinx.coroutines.Dispatchers
66+
import kotlinx.coroutines.InternalCoroutinesApi
6667
import kotlinx.coroutines.SupervisorJob
6768
import kotlinx.coroutines.async
6869
import kotlinx.coroutines.awaitAll
@@ -124,7 +125,6 @@ import retrofit2.HttpException
124125
import java.net.ConnectException
125126
import java.util.*
126127
import kotlin.coroutines.Continuation
127-
import kotlin.coroutines.resumeWithException
128128

129129
internal const val WAIT_FOR_CONNECTION_ID_TIMEOUT = 5000L
130130
internal const val defaultAudioUsage = AudioAttributes.USAGE_VOICE_COMMUNICATION
@@ -1025,6 +1025,7 @@ internal class StreamVideoImpl internal constructor(
10251025
}
10261026
}
10271027

1028+
@OptIn(InternalCoroutinesApi::class)
10281029
suspend fun _selectLocation(): Result<String> {
10291030
return wrapAPICall {
10301031
val url = "https://hint.stream-io-video.com/"
@@ -1033,7 +1034,9 @@ internal class StreamVideoImpl internal constructor(
10331034
val response = suspendCancellableCoroutine { continuation ->
10341035
call.enqueue(object : Callback {
10351036
override fun onFailure(call: okhttp3.Call, e: java.io.IOException) {
1036-
continuation.resumeWithException(e)
1037+
continuation.tryResumeWithException(e)?.let {
1038+
continuation.completeResume(it)
1039+
}
10371040
}
10381041

10391042
override fun onResponse(call: okhttp3.Call, response: Response) {

0 commit comments

Comments
 (0)