Skip to content

Commit f9b2d23

Browse files
authored
Merge pull request #38 from icerockdev/develop
Release 0.5.0
2 parents ece7911 + b53c3e2 commit f9b2d23

5 files changed

Lines changed: 15 additions & 3 deletions

File tree

.github/workflows/compilation-check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ jobs:
2121
- name: Install pods
2222
run: cd sample/ios-app && pod install
2323
- name: Check iOS
24-
run: cd sample/ios-app && xcodebuild -scheme TestProj -workspace TestProj.xcworkspace -configuration Debug -sdk iphonesimulator -arch x86_64 build CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=NO | xcpretty
24+
run: cd sample/ios-app && set -o pipefail && xcodebuild -scheme TestProj -workspace TestProj.xcworkspace -configuration Debug -sdk iphonesimulator -arch x86_64 build CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=NO | xcpretty

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ allprojects {
4444
project build.gradle
4545
```groovy
4646
dependencies {
47-
commonMainApi("dev.icerock.moko:errors:0.4.0")
47+
commonMainApi("dev.icerock.moko:errors:0.5.0")
4848
}
4949
```
5050

errors-build-logic/src/main/kotlin/publication-convention.gradle.kts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,11 @@ publishing {
3535
}
3636

3737
developers {
38+
developer {
39+
id.set("Tetraquark")
40+
name.set("Vladislav Areshkin")
41+
email.set("vareshkin@icerockdev.com")
42+
}
3843
developer {
3944
id.set("Alex009")
4045
name.set("Aleksey Mikhailov")

errors/src/commonMain/kotlin/dev/icerock/moko/errors/mappers/ExceptionMappersStorage.kt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,4 +167,11 @@ object ExceptionMappersStorage {
167167
inline fun <E : Throwable, reified T : Any> throwableMapper(): (e: E) -> T {
168168
return throwableMapper(T::class)
169169
}
170+
171+
/**
172+
* Factory method that allows getting exception description
173+
*/
174+
inline fun <reified E : Throwable, reified T : Any> E.mapThrowable(): T {
175+
return ExceptionMappersStorage.throwableMapper<E, T>(T::class)(this)
176+
}
170177
}

gradle/libs.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ androidCoreTestingVersion = "2.1.0"
77
coroutinesVersion = "1.5.0-native-mt"
88
mokoMvvmVersion = "0.11.0"
99
mokoResourcesVersion = "0.16.0"
10-
mokoErrorsVersion = "0.4.0"
10+
mokoErrorsVersion = "0.5.0"
1111

1212
[libraries]
1313
appCompat = { module = "androidx.appcompat:appcompat", version.ref = "androidAppCompatVersion" }

0 commit comments

Comments
 (0)