From b83949961a1f700835344991dfac8507474d3fe5 Mon Sep 17 00:00:00 2001 From: Vitor Hugo Schwaab Date: Wed, 17 Jul 2024 22:14:06 +0200 Subject: [PATCH] chore: return supertype in `actual` class --- .../kotlin/com.wire.kalium.util/KaliumDispatcherImpl.kt | 3 +-- .../jsMain/kotlin/com.wire.kalium.util/KaliumDispatcherImpl.kt | 3 +-- .../kotlin/com/wire/kalium/util/KaliumDispatcherImpl.kt | 3 +-- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/util/src/appleMain/kotlin/com.wire.kalium.util/KaliumDispatcherImpl.kt b/util/src/appleMain/kotlin/com.wire.kalium.util/KaliumDispatcherImpl.kt index cce8e5fba57..2a78940a81c 100644 --- a/util/src/appleMain/kotlin/com.wire.kalium.util/KaliumDispatcherImpl.kt +++ b/util/src/appleMain/kotlin/com.wire.kalium.util/KaliumDispatcherImpl.kt @@ -20,12 +20,11 @@ package com.wire.kalium.util import kotlinx.coroutines.CoroutineDispatcher import kotlinx.coroutines.Dispatchers -import kotlinx.coroutines.MainCoroutineDispatcher actual object KaliumDispatcherImpl : KaliumDispatcher { override val default: CoroutineDispatcher get() = Dispatchers.Default - override val main: MainCoroutineDispatcher + override val main: CoroutineDispatcher get() = Dispatchers.Main override val unconfined: CoroutineDispatcher get() = Dispatchers.Unconfined diff --git a/util/src/jsMain/kotlin/com.wire.kalium.util/KaliumDispatcherImpl.kt b/util/src/jsMain/kotlin/com.wire.kalium.util/KaliumDispatcherImpl.kt index cce8e5fba57..2a78940a81c 100644 --- a/util/src/jsMain/kotlin/com.wire.kalium.util/KaliumDispatcherImpl.kt +++ b/util/src/jsMain/kotlin/com.wire.kalium.util/KaliumDispatcherImpl.kt @@ -20,12 +20,11 @@ package com.wire.kalium.util import kotlinx.coroutines.CoroutineDispatcher import kotlinx.coroutines.Dispatchers -import kotlinx.coroutines.MainCoroutineDispatcher actual object KaliumDispatcherImpl : KaliumDispatcher { override val default: CoroutineDispatcher get() = Dispatchers.Default - override val main: MainCoroutineDispatcher + override val main: CoroutineDispatcher get() = Dispatchers.Main override val unconfined: CoroutineDispatcher get() = Dispatchers.Unconfined diff --git a/util/src/jvmMain/kotlin/com/wire/kalium/util/KaliumDispatcherImpl.kt b/util/src/jvmMain/kotlin/com/wire/kalium/util/KaliumDispatcherImpl.kt index c3da5b4ed95..1fa7b5432cf 100644 --- a/util/src/jvmMain/kotlin/com/wire/kalium/util/KaliumDispatcherImpl.kt +++ b/util/src/jvmMain/kotlin/com/wire/kalium/util/KaliumDispatcherImpl.kt @@ -20,12 +20,11 @@ package com.wire.kalium.util import kotlinx.coroutines.CoroutineDispatcher import kotlinx.coroutines.Dispatchers -import kotlinx.coroutines.MainCoroutineDispatcher actual object KaliumDispatcherImpl : KaliumDispatcher { override val default: CoroutineDispatcher get() = Dispatchers.Default - override val main: MainCoroutineDispatcher + override val main: CoroutineDispatcher get() = Dispatchers.Main override val unconfined: CoroutineDispatcher get() = Dispatchers.Unconfined