Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): update plugin.ktfmt to v0.16.0 #216

Merged
merged 2 commits into from
Jan 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ internal object DebugDrawerModules {
Timber.i("Restarting app to reflect updated emulator connection settings")
ProcessPhoenix.triggerRebirth(context)
},
initialHost = runBlocking { debugPreferences.emulatorHost.value() }
?: "(No host set)"
initialHost =
runBlocking { debugPreferences.emulatorHost.value() } ?: "(No host set)"
)
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import com.omricat.logging.Loggable
import com.omricat.logging.log

context(Loggable)

inline fun <V, E, T : Exception> Result<V, T>.logAndMapException(
transform: (T) -> E
): Result<V, E> = this.onFailure { logger.log(Warn, throwable = it) { "" } }.mapError(transform)
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ agp = "8.2.1"
plugin_dependencyAnalysis = "1.29.0"
plugin_googleServices = "4.4.0"
plugin_gradleDoctor = "0.9.1"
plugin_ktfmt = "0.13.0"
plugin_ktfmt = "0.16.0"
plugin_moduleGraphAssertion = "2.5.0"
plugin_taskTree = "2.1.1"

Expand Down
2 changes: 0 additions & 2 deletions util/logging/src/main/kotlin/com/omricat/logging/Loggable.kt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ public interface Loggable {
}

context(Loggable)

public inline fun <reified T : Any> T.log(
priority: Severity = Debug,
tag: String? = null,
Expand All @@ -20,7 +19,6 @@ public inline fun <reified T : Any> T.log(
}

context(Loggable)

public inline fun <reified T : Any> T.log(
priority: Severity = Debug,
tag: String? = null,
Expand Down