Skip to content

Commit

Permalink
Downgrade compose. (#329)
Browse files Browse the repository at this point in the history
* Downgrade compose.

* Fix flaky test.
  • Loading branch information
Laimiux authored Jan 4, 2024
1 parent 66404c6 commit 8683342
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion formula-android-compose/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ android {
}

composeOptions {
kotlinCompilerExtensionVersion = libs.versions.compose.get()
kotlinCompilerExtensionVersion = libs.versions.compose.compiler.get()
}

publishing {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -646,7 +646,7 @@ class FormulaRuntimeTest(val runtime: TestableRuntime, val name: String) {
}

val observer = runtime.test(formula, Unit)
bgAction.latch.await(10, TimeUnit.MILLISECONDS)
bgAction.latch.await(50, TimeUnit.MILLISECONDS)
assertThat(bgAction.errors.values().firstOrNull()?.message).contains(
"com.instacart.formula.subjects.OnlyUpdateFormula - Only thread that created it can post transition result Expected:"
)
Expand Down
4 changes: 3 additions & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ dokka-gradle = "1.9.10"

kotlin = "1.9.10"
coroutines = "1.5.2"
compose = "1.5.3"
compose = "1.4.3"
# We keep compiler version separate to support Kotlin updates
compose-compiler = "1.5.3"

androidX = "1.2.0"
lifecycle = "2.2.0"
Expand Down
2 changes: 1 addition & 1 deletion samples/stopwatch-compose/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ android {
}

composeOptions {
kotlinCompilerExtensionVersion = libs.versions.compose.get()
kotlinCompilerExtensionVersion = libs.versions.compose.compiler.get()
}

buildTypes {
Expand Down

0 comments on commit 8683342

Please sign in to comment.