diff --git a/app/build.gradle b/app/build.gradle index 6e06437e..d0e85f1a 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -42,24 +42,9 @@ dependencies { implementation "com.google.dagger:hilt-android:2.44" annotationProcessor "com.google.dagger:hilt-compiler:2.44" - // Navigation Component - def nav_version = "2.7.5" - - // Java language implementation - implementation "androidx.navigation:navigation-fragment:$nav_version" - implementation "androidx.navigation:navigation-ui:$nav_version" - - // Kotlin - implementation "androidx.navigation:navigation-fragment-ktx:$nav_version" - implementation "androidx.navigation:navigation-ui-ktx:$nav_version" - - // Feature module Support - implementation "androidx.navigation:navigation-dynamic-features-fragment:$nav_version" - - // Testing Navigation - androidTestImplementation "androidx.navigation:navigation-testing:$nav_version" - - // Jetpack Compose Integration - implementation "androidx.navigation:navigation-compose:$nav_version" + // Navigation + implementation libs.navigation.fragment + implementation libs.navigation.ui + implementation libs.navigation.dynamic.features.fragment } \ No newline at end of file diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml new file mode 100644 index 00000000..0278ce5a --- /dev/null +++ b/gradle/libs.versions.toml @@ -0,0 +1,9 @@ +[versions] +nav = "2.7.5" + +[libraries] +navigation-fragment = { group="androidx.navigation", name="navigation-fragment", version.ref="nav"} +navigation-ui = { group="androidx.navigation", name="navigation-ui", version.ref="nav"} +navigation-dynamic-features-fragment = { group="androidx.navigation", name="navigation-dynamic-features-fragment", version.ref="nav"} + +[plugins] \ No newline at end of file diff --git a/settings.gradle b/settings.gradle index 01906fdc..30217124 100644 --- a/settings.gradle +++ b/settings.gradle @@ -11,17 +11,6 @@ dependencyResolutionManagement { google() mavenCentral() } - versionCatalogs { - navigations{ - def nav_version = "2.7.5" - bundle("navs", ["androidx.navigation:navigation-fragment:$nav_version", - "androidx.navigation:navigation-ui:$nav_version", - "androidx.navigation:navigation-fragment-ktx:$nav_version", - "androidx.navigation:navigation-ui-ktx:$nav_version", - "androidx.navigation:navigation-dynamic-features-fragment:$nav_version", - "androidx.navigation:navigation-testing:$nav_version"]) - } - } } rootProject.name = "Lacerta"