Skip to content

Commit

Permalink
Update circuit to v0.22.2 (#3546)
Browse files Browse the repository at this point in the history
* Update circuit to v0.22.2

* update signature of Navigator.goTo method

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Daniel Frett <[email protected]>
  • Loading branch information
renovate[bot] and frett authored Jul 1, 2024
1 parent b2189ee commit cd9b9f0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,10 @@ class ToolDetailsActivity : BaseActivity() {
goTo = { screen, delegate ->
when (screen) {
// TODO: move this logic into the ToolDetailsPresenter once tutorials use Circuit
is OpenToolTrainingScreen ->
is OpenToolTrainingScreen -> {
launchTrainingTips(screen.tool, screen.type, screen.locale)
true
}

else -> delegate.goTo(screen)
}
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/kotlin/org/cru/godtools/util/CircuitUtils.kt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import com.slack.circuit.runtime.screen.Screen
@Composable
fun rememberInterceptingNavigator(
delegate: Navigator,
goTo: (screen: Screen, delegate: Navigator) -> Unit = { screen, delegate -> delegate.goTo(screen) },
goTo: (screen: Screen, delegate: Navigator) -> Boolean = { screen, delegate -> delegate.goTo(screen) },
): Navigator {
val goTo by rememberUpdatedState(goTo)

Expand Down
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ androidx-lifecycle = "2.8.3"
androidx-room = "2.6.1"
androidx-viewpager2 = "1.1.0"
androidx-work = "2.9.0"
circuit = "0.20.0"
circuit = "0.22.2"
coil = "2.6.0"
dagger = "2.51.1"
eventbus = "3.3.1"
Expand Down

0 comments on commit cd9b9f0

Please sign in to comment.