Skip to content

Commit

Permalink
Remove coroutines version substitution for web targets (#4369)
Browse files Browse the repository at this point in the history
All targets (including desktop and ios) now should use coroutines 1.8.0
___

According to COMPOSE-939
  • Loading branch information
eymar authored and igordmn committed Mar 4, 2024
1 parent 4e948e4 commit ea16142
Showing 1 changed file with 0 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,23 +87,6 @@ abstract class ComposePlugin : Plugin<Project> {

disableSignatureClashCheck(project)
}

// TODO: remove this (https://youtrack.jetbrains.com/issue/COMPOSE-939)
// we substitute the coroutines version for web targets in user projects,
// so they don't need to do that manually
project.configurations.all {
val isWeb = it.name.startsWith("wasmJs") || it.name.startsWith("js")
if (isWeb) {
it.resolutionStrategy.eachDependency {
if (it.requested.group.startsWith("org.jetbrains.kotlinx") &&
it.requested.name.startsWith("kotlinx-coroutines-")) {
if (it.requested.version?.startsWith("1.7") == true) {
it.useVersion("1.8.0-RC2")
}
}
}
}
}
}

private fun disableSignatureClashCheck(project: Project) {
Expand Down

0 comments on commit ea16142

Please sign in to comment.