Navigation関係をversionCatalogsに移動

This commit is contained in:
ろむねこ 2023-12-07 14:48:48 +09:00
parent 5eb9af56c2
commit ff0b272fa4
No known key found for this signature in database
GPG Key ID: FA1F39A1BA37D168
3 changed files with 13 additions and 30 deletions

View File

@ -42,24 +42,9 @@ dependencies {
implementation "com.google.dagger:hilt-android:2.44" implementation "com.google.dagger:hilt-android:2.44"
annotationProcessor "com.google.dagger:hilt-compiler:2.44" annotationProcessor "com.google.dagger:hilt-compiler:2.44"
// Navigation Component // Navigation
def nav_version = "2.7.5" implementation libs.navigation.fragment
implementation libs.navigation.ui
// Java language implementation implementation libs.navigation.dynamic.features.fragment
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"
} }

View File

@ -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]

View File

@ -11,17 +11,6 @@ dependencyResolutionManagement {
google() google()
mavenCentral() 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" rootProject.name = "Lacerta"