From 67efbbdc3fe6fae92fcd40ba48e7b0dd5d216fd7 Mon Sep 17 00:00:00 2001 From: "muthuraj.mr" Date: Sat, 24 Oct 2026 16:34:28 +0530 Subject: [PATCH] fix(build): kotlinx-coroutines-test is a test dependency, not a runtime one It was declared in commonMain, so every consumer shipped it, and its TestMainDispatcherFactory service can shadow the real Main dispatcher when service files are merged (fat jars), breaking Dispatchers.Main (#250). Moved to commonTest; no main source uses it. --- mediaplayer/build.gradle.kts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mediaplayer/build.gradle.kts b/mediaplayer/build.gradle.kts index cd719b08..f10577b9 100644 --- a/mediaplayer/build.gradle.kts +++ b/mediaplayer/build.gradle.kts @@ -74,13 +74,13 @@ kotlin { implementation(libs.compose.runtime) implementation(libs.compose.foundation) implementation(libs.kotlinx.coroutines.core) - implementation(libs.kotlinx.coroutines.test) api(libs.filekit.core) implementation(libs.kotlinx.datetime) } commonTest.dependencies { implementation(kotlin("test")) + implementation(libs.kotlinx.coroutines.test) } androidMain.dependencies {