Skip to content

Commit

Permalink
[Wear] Update Horologist lib, cleanup (#1493)
Browse files Browse the repository at this point in the history
- removed unused method
- update to latest horologist
- remove parameter which is passed by default
  • Loading branch information
kul3r4 authored Oct 21, 2024
2 parents 4a55d6f + 29ef32f commit b7897e7
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 13 deletions.
2 changes: 1 addition & 1 deletion Jetcaster/gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ google-maps = "18.2.0"
gradle-versions = "0.51.0"
hilt = "2.51.1"
hiltExt = "1.2.0"
horologist = "0.6.19"
horologist = "0.6.20"
# @pin When updating to AGP 7.4.0-alpha10 and up we can update this https://developer.android.com/studio/write/java8-support#library-desugaring-versions
jdkDesugar = "1.2.2"
junit = "4.13.2"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ import com.example.jetcaster.ui.queue.QueueScreen
import com.google.android.horologist.audio.ui.VolumeScreen
import com.google.android.horologist.audio.ui.VolumeViewModel
import com.google.android.horologist.compose.layout.AppScaffold
import com.google.android.horologist.compose.layout.ResponsiveTimeText
import com.google.android.horologist.compose.layout.ScreenScaffold
import com.google.android.horologist.media.ui.navigation.MediaNavController.navigateToPlayer
import com.google.android.horologist.media.ui.navigation.MediaNavController.navigateToVolume
Expand All @@ -65,9 +64,7 @@ fun WearApp() {
val volumeViewModel: VolumeViewModel = viewModel(factory = VolumeViewModel.Factory)

WearAppTheme {
AppScaffold(
timeText = { ResponsiveTimeText() },
) {
AppScaffold {
SwipeDismissableNavHost(
startDestination = NavigationScreens.Player.navRoute,
navController = navController,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,6 @@ public object JetcasterNavController {
public fun NavController.navigateToEpisode(episodeUri: String) {
navigate(Episode.destination(episodeUri))
}

public fun NavController.navigateToPlaybackSpeed() {
navigate(PlaybackSpeed.destination())
}
}

public object YourPodcasts : NavigationScreens("yourPodcasts") {
Expand Down Expand Up @@ -94,7 +90,3 @@ public object Episode : NavigationScreens("episode?episodeUri={episodeUri}") {
public object UpNext : NavigationScreens("upNext") {
public fun destination(): String = navRoute
}

public object PlaybackSpeed : NavigationScreens("playbackSpeed") {
public fun destination(): String = navRoute
}

0 comments on commit b7897e7

Please sign in to comment.