From ff0b272fa4a1807956688d1de2e444d5acc35727 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=82=8D=E3=82=80=E3=81=AD=E3=81=93?= Date: Thu, 7 Dec 2023 14:48:48 +0900 Subject: [PATCH] =?UTF-8?q?Navigation=E9=96=A2=E4=BF=82=E3=82=92versionCat?= =?UTF-8?q?alogs=E3=81=AB=E7=A7=BB=E5=8B=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/build.gradle | 23 ++++------------------- gradle/libs.versions.toml | 9 +++++++++ settings.gradle | 11 ----------- 3 files changed, 13 insertions(+), 30 deletions(-) create mode 100644 gradle/libs.versions.toml 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"