Skip to content

Commit 84a0c4d

Browse files
Merge pull request #72 from square/zachklipp/remove-forced-coroutines
Remove coroutine forced dependency resolution.
2 parents f76d670 + dd6ff37 commit 84a0c4d

File tree

2 files changed

+2
-14
lines changed

2 files changed

+2
-14
lines changed

build.gradle.kts

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -52,19 +52,6 @@ subprojects {
5252
maven("https://dl.bintray.com/kotlin/kotlin-eap")
5353
}
5454

55-
configurations.all {
56-
resolutionStrategy {
57-
// There's an issue with running Compose @Previews in Android Studio with newer versions of
58-
// the coroutines library (exception about an unresolved symbol). Until that's fixed, we have
59-
// to force the coroutines version brought in by Workflows to 1.3.0.
60-
// See https://github.com/square/workflow-kotlin-compose/issues/13.
61-
force(
62-
"org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.0",
63-
"org.jetbrains.kotlinx:kotlinx-coroutines-android:1.3.0"
64-
)
65-
}
66-
}
67-
6855
apply(plugin = "org.jlleitschuh.gradle.ktlint")
6956
apply(plugin = "io.gitlab.arturbosch.detekt")
7057
afterEvaluate {

samples/src/main/java/com/squareup/sample/textinput/TextInputViewFactory.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,8 @@ val TextInputViewFactory = composedViewFactory<Rendering> { rendering, _ ->
5757
}
5858
}
5959

60-
@Preview @Composable private fun TextInputViewFactoryPreview() {
60+
@Preview(showBackground = true)
61+
@Composable private fun TextInputViewFactoryPreview() {
6162
TextInputViewFactory.preview(Rendering(
6263
text = "Hello world",
6364
onTextChanged = {},

0 commit comments

Comments
 (0)