Skip to content

Commit

Permalink
Update Dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
swapnil-musale committed Jun 6, 2024
1 parent ced34b4 commit f21fdc4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 11 deletions.
4 changes: 3 additions & 1 deletion app/src/main/java/com/devx/jetjoke/navigation/AppNavGraph.kt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.devx.jetjoke.navigation

import androidx.compose.runtime.Composable
import androidx.compose.ui.platform.LocalLifecycleOwner
import androidx.hilt.navigation.compose.hiltViewModel
import androidx.lifecycle.compose.collectAsStateWithLifecycle
import androidx.navigation.compose.NavHost
Expand All @@ -19,7 +20,8 @@ fun AppNavGraph() {
) {
composable(route = ScreenRoute.HomeScreen.route) {
val homeViewModel: HomeViewModel = hiltViewModel()
val uiState = homeViewModel.uiState.collectAsStateWithLifecycle()
val uiState =
homeViewModel.uiState.collectAsStateWithLifecycle(lifecycleOwner = LocalLifecycleOwner.current)

HomeScreen(
uiState = uiState.value,
Expand Down
15 changes: 5 additions & 10 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ androidGradlePlugin = "8.4.1"
androidLibrary = "8.4.1"
kotlin = "2.0.0"
jvmTarget = "1.8"
kotlinKsp = "2.0.0-1.0.21"
detektVersion = "1.23.5"
kotlinKsp = "2.0.0-1.0.22"
detektVersion = "1.23.6"

# Library Version
kotlinBOM = "1.9.23"
kotlinBOM = "2.0.0"
composeBOM = "2024.05.00"

coreKtx = "1.13.1"
Expand All @@ -19,15 +19,14 @@ composeNavigation = "2.7.7"
androidXLifecycle = "2.8.1"
androidMaterial3 = "1.2.1"
hiltAndroid = "2.51.1"
retrofit = "2.9.0"
retrofit = "2.11.0"
okHttp3 = "4.12.0"
moshi = "1.15.1"
javaxInject = "1"
hiltNavigation = "1.2.0"
konsist = "0.15.0"
konsist = "0.15.1"

# Testing Library Version
junit4 = "1.6.7"
junit = "4.13.2"
junitExtension = "1.1.5"
espressoCore = "3.5.1"
Expand Down Expand Up @@ -60,7 +59,6 @@ hilt-navigation = { module = "androidx.hilt:hilt-navigation-compose", version.re
okhttp3 = { module = "com.squareup.okhttp3:okhttp", version.ref = "okHttp3" }
loggin-interceptor = { module = "com.squareup.okhttp3:logging-interceptor", version.ref = "okHttp3" }
retrofit = { module = "com.squareup.retrofit2:retrofit", version.ref = "retrofit" }
moshi = { module = "com.squareup.moshi:moshi", version.ref = "moshi" }
moshi-converter = { module = "com.squareup.retrofit2:converter-moshi", version.ref = "retrofit" }
moshi-codegen = { module = "com.squareup.moshi:moshi-kotlin-codegen", version.ref = "moshi" }

Expand All @@ -71,8 +69,6 @@ javax-inject = { module = "javax.inject:javax.inject", version.ref = "javaxInjec
junit-test = { module = "junit:junit", version.ref = "junit" }
junit-extension-test = { module = "androidx.test.ext:junit", version.ref = "junitExtension" }
espresso-test = { module = "androidx.test.espresso:espresso-core", version.ref = "espressoCore" }
compose-ui-test = { module = "androidx.compose.ui:ui-test-junit4", version.ref = "junit4" }
coroutine-test = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-test", version.ref = "kotlinBOM" }
konsist = { module = "com.lemonappdev:konsist", version.ref = "konsist" }
compose-ui-tooling-test = { module = "androidx.compose.ui:ui-tooling" }
compose-manifest-test = { module = "androidx.compose.ui:ui-test-manifest" }
Expand All @@ -88,7 +84,6 @@ android-application = { id = "com.android.application", version.ref = "androidGr
android-library = { id = "com.android.library", version.ref = "androidLibrary" }
kotlin-android = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" }
kotlin-jvm = { id = "org.jetbrains.kotlin.jvm", version.ref = "kotlin" }
java-library = { id = "java-library" }
hilt = { id = "com.google.dagger.hilt.android", version.ref = "hiltAndroid" }
kotlin-ksp = { id = "com.google.devtools.ksp", version.ref = "kotlinKsp" }
detekt = { id = "io.gitlab.arturbosch.detekt", version.ref = "detektVersion" }
Expand Down

0 comments on commit f21fdc4

Please sign in to comment.