Skip to content

Commit

Permalink
chore: update compose destinations and navigation libs (#2339)
Browse files Browse the repository at this point in the history
  • Loading branch information
saleniuk committed Oct 18, 2023
1 parent bc76aae commit 0eefaaf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Expand Up @@ -22,7 +22,7 @@ import androidx.compose.animation.EnterTransition
import androidx.compose.animation.ExitTransition
import androidx.compose.animation.ExperimentalAnimationApi
import androidx.navigation.NavBackStackEntry
import com.ramcosta.composedestinations.spec.DestinationStyleAnimated
import com.ramcosta.composedestinations.spec.DestinationStyle
import com.wire.android.ui.appDestination
import com.wire.android.ui.destinations.Destination

Expand All @@ -32,7 +32,7 @@ import com.wire.android.ui.destinations.Destination
* Thanks to that animations are consistent and not mixed when both destinations involved in the transition use different styles.
*/
@OptIn(ExperimentalAnimationApi::class)
internal interface WireDestinationStyleAnimated : DestinationStyleAnimated {
internal interface WireDestinationStyleAnimated : DestinationStyle.Animated {
fun animationType(): TransitionAnimationType = TransitionAnimationType.SLIDE
private fun Destination.getAnimationTypeStyle() =
(this.style as? WireDestinationStyleAnimated)?.animationType() ?: SlideNavigationAnimation.animationType()
Expand Down
6 changes: 3 additions & 3 deletions gradle/libs.versions.toml
Expand Up @@ -40,16 +40,16 @@ androidx-biometric = "1.1.0"
composeBom = "2023.10.00" # TODO check if in new version [anchoredDraggable] is available
compose-compiler = "1.5.2"
compose-constraint = "1.0.1"
compose-navigation = "2.6.0"
compose-destinations = "1.9.40-beta"
compose-navigation = "2.7.3" # adjusted to work with compose-destinations "1.9.54"
compose-destinations = "1.9.54"

# Hilt
hilt = "2.48"
hilt-composeNavigation = "1.0.0"
hilt-work = "1.0.0"

# Android UI
accompanist = "0.31.0-alpha" # adjusted to work with compose-destinations "1.9.40-beta"
accompanist = "0.32.0" # adjusted to work with compose-destinations "1.9.54"
material = "1.9.0"
coil = "2.4.0"
commonmark = "0.21.0"
Expand Down

0 comments on commit 0eefaaf

Please sign in to comment.