Skip to content

Commit

Permalink
compose navigation stuff added to build gradle
Browse files Browse the repository at this point in the history
  • Loading branch information
magda-woj committed Jul 30, 2024
1 parent d636d6c commit 6a7bbd2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 4 additions & 2 deletions demo-app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,10 @@ dependencies {
implementation(libs.androidx.navigation.fragment.ktx)
implementation(libs.androidx.navigation.ui.ktx)
implementation(libs.opentelemetry.api.incubator)
val nav_version = "2.7.7"
implementation("androidx.navigation:navigation-compose:$nav_version")
implementation(libs.androidx.navigation.compose)

// val nav_version = "2.7.7"
// implementation("androidx.navigation:navigation-compose:$nav_version")

coreLibraryDesugaring(libs.desugarJdkLibs)

Expand Down
6 changes: 6 additions & 0 deletions demo-app/gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ opentelemetry-alpha = "1.39.0-alpha"
junit = "5.10.3"
spotless = "6.25.0"
kotlin = "2.0.0"
navigation-compose = "2.7.7"

[libraries]
androidx-appcompat = "androidx.appcompat:appcompat:1.7.0"
Expand Down Expand Up @@ -37,6 +38,11 @@ androidx-lifecycle-livedata-ktx = { group = "androidx.lifecycle", name = "lifecy
androidx-lifecycle-viewmodel-ktx = { group = "androidx.lifecycle", name = "lifecycle-viewmodel-ktx", version = "2.8.4" }
androidx-navigation-fragment-ktx = { group = "androidx.navigation", name = "navigation-fragment-ktx", version = "2.7.7" }
androidx-navigation-ui-ktx = { group = "androidx.navigation", name = "navigation-ui-ktx", version = "2.7.7" }
androidx-lifecycle-livedata-ktx = { group = "androidx.lifecycle", name = "lifecycle-livedata-ktx", version = "2.8.3" }
androidx-lifecycle-viewmodel-ktx = { group = "androidx.lifecycle", name = "lifecycle-viewmodel-ktx", version = "2.8.3" }
androidx-navigation-fragment-ktx = { group = "androidx.navigation", name = "navigation-fragment-ktx", version.ref = "navigation-compose" }
androidx-navigation-ui-ktx = { group = "androidx.navigation", name = "navigation-ui-ktx", version.ref = "navigation-compose" }
androidx-navigation-compose = {group = "androidx.navigation", name = "navigation-compose", version.ref = "navigation-compose"}

[bundles]
junit = ["junit-jupiter-api", "junit-jupiter-engine", "junit-vintage-engine"]
Expand Down

0 comments on commit 6a7bbd2

Please sign in to comment.