- Add `runCatchingExceptions` and `mapCatchingExceptions` to replace `runCatching` and `mapCatching`.
- Make `tryOrNull { ... }` catch only exceptions too.
- Apply the changes to the whole project.
- Add new Rust fakes for tests to handle the code that's now unblocked - previously it just threw an `UnsatisfiedLinkError` which we ignored.
- Add a new `detekt-rules` project with a `RunCatchingRule` to prevent `runCatching` and `mapCatching` usages.
21 lines
385 B
Kotlin
21 lines
385 B
Kotlin
plugins {
|
|
alias(libs.plugins.kotlin.jvm)
|
|
}
|
|
java {
|
|
sourceCompatibility = Versions.javaVersion
|
|
targetCompatibility = Versions.javaVersion
|
|
}
|
|
|
|
kotlin {
|
|
jvmToolchain {
|
|
languageVersion = Versions.javaLanguageVersion
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
compileOnly(libs.test.detekt.api)
|
|
testImplementation(libs.test.detekt.test)
|
|
|
|
testImplementation(libs.test.truth)
|
|
}
|