Skip to content

Commit

Permalink
Dependency updates
Browse files Browse the repository at this point in the history
  • Loading branch information
dkrivoruchko committed Mar 30, 2022
1 parent 8b7a619 commit 8fa592c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 deletions.
10 changes: 5 additions & 5 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ android {
applicationId = "info.dvkr.screenstream"
minSdkVersion(21)
targetSdkVersion(31)
versionCode = 30807
versionName = "3.8.7"
versionCode = 30808
versionName = "3.8.8"
resConfigs 'en', 'ru', 'pt-rBR', 'zh-rTW', 'fr-rFR', 'fa', 'it', 'pl', 'hi', 'de', 'sk', 'es', 'ar', 'ja', 'gl', 'ca', 'uk', 'nl'

vectorDrawables.useSupportLibrary = true
Expand Down Expand Up @@ -128,9 +128,9 @@ dependencies {
exclude group: "androidx.fragment"
exclude group: "androidx.core"
}
firebaseImplementation("com.google.firebase:firebase-analytics:20.1.0")
firebaseImplementation("com.google.firebase:firebase-crashlytics:18.2.8")
firebaseImplementation("com.google.android.gms:play-services-ads:20.5.0")
firebaseImplementation("com.google.firebase:firebase-analytics:20.1.2")
firebaseImplementation("com.google.firebase:firebase-crashlytics:18.2.9")
firebaseImplementation("com.google.android.gms:play-services-ads:20.6.0")

debugImplementation("com.squareup.leakcanary:leakcanary-android:2.8.1")
}
Expand Down
2 changes: 1 addition & 1 deletion data/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ dependencies {
implementation("androidx.core:core:1.7.0")
implementation("androidx.window:window:1.0.0")

implementation("io.ktor:ktor-server-cio:1.6.7")
implementation("io.ktor:ktor-server-cio:1.6.8")

implementation("com.github.iamironz:binaryprefs:1.0.1")
implementation('com.elvishew:xlog:1.11.0')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import io.ktor.utils.io.*
import kotlinx.coroutines.*
import kotlinx.coroutines.flow.*
import java.io.ByteArrayOutputStream
import java.io.IOException
import java.net.BindException
import java.util.*
import java.util.concurrent.atomic.AtomicReference
Expand Down Expand Up @@ -72,8 +73,11 @@ internal class HttpServer(
XLog.d(getLog("onCoroutineException", "ktorServer: ${ktorServer?.hashCode()}"))
ktorServer?.stop(0, 250)
ktorServer = null
if (throwable is BindException) sendEvent(Event.Error(FixableError.AddressInUseException))
else sendEvent(Event.Error(FatalError.HttpServerException))
when (throwable) {
is BindException -> sendEvent(Event.Error(FixableError.AddressInUseException))
is IOException -> Unit // Ignore
else -> sendEvent(Event.Error(FatalError.HttpServerException))
}
}
val coroutineScope = CoroutineScope(Job() + Dispatchers.Default + coroutineExceptionHandler)

Expand Down

0 comments on commit 8fa592c

Please sign in to comment.