Skip to content

Commit

Permalink
Merge pull request #212 from icerockdev/develop
Browse files Browse the repository at this point in the history
Release 0.21.2
  • Loading branch information
Alex009 authored Mar 4, 2024
2 parents 6a8040b + 510ad91 commit c9c5c9c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ buildscript {
}
dependencies {
classpath "dev.icerock.moko:network-generator:0.21.1"
classpath "dev.icerock.moko:network-generator:0.21.2"
}
}
Expand All @@ -53,10 +53,10 @@ project build.gradle
apply plugin: "dev.icerock.mobile.multiplatform-network-generator"
dependencies {
commonMainApi("dev.icerock.moko:network:0.21.1")
commonMainApi("dev.icerock.moko:network-engine:0.21.1") // configured HttpClientEngine
commonMainApi("dev.icerock.moko:network-bignum:0.21.1") // kbignum serializer
commonMainApi("dev.icerock.moko:network-errors:0.21.1") // moko-errors integration
commonMainApi("dev.icerock.moko:network:0.21.2")
commonMainApi("dev.icerock.moko:network-engine:0.21.2") // configured HttpClientEngine
commonMainApi("dev.icerock.moko:network-bignum:0.21.2") // kbignum serializer
commonMainApi("dev.icerock.moko:network-errors:0.21.2") // moko-errors integration
}
```

Expand Down
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ mokoResourcesVersion = "0.21.2"
mokoMvvmVersion = "0.16.0"
mokoErrorsVersion = "0.7.0"
mokoTestVersion = "0.6.1"
mokoNetworkVersion = "0.21.1"
mokoNetworkVersion = "0.21.2"

# tests
espressoCoreVersion = "3.5.1"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,15 @@
package dev.icerock.moko.network

import java.net.ConnectException
import java.net.SocketException
import java.net.SocketTimeoutException
import java.net.UnknownHostException
import java.util.concurrent.TimeoutException

actual fun Throwable.isNetworkConnectionError(): Boolean {
return when (this) {
is ConnectException,
is SocketException,
is SocketTimeoutException,
is TimeoutException,
is UnknownHostException -> true
Expand Down

0 comments on commit c9c5c9c

Please sign in to comment.