Skip to content

Commit 8c6050b

Browse files
committed
[CHORE] #17 : safe args plugin 추가
1 parent 6b905a4 commit 8c6050b

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

app/build.gradle.kts

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ plugins {
33
id("com.wap.wapp.firebase")
44
id("com.wap.wapp.compose")
55
id("com.wap.wapp.hilt")
6+
id("com.wap.wapp.navigation")
67
}
78

89
android {

build.gradle.kts

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ buildscript {
66
dependencies {
77
classpath(libs.android.build)
88
classpath(libs.kotlin.gradle)
9+
classpath(libs.androidx.navigation.safeargs)
910
classpath(libs.hilt.gradle)
1011
classpath(libs.google.services.gradle)
1112
classpath(libs.firebase.crashlytics.gradle)
@@ -16,6 +17,7 @@ plugins {
1617
alias(libs.plugins.android.application) apply false
1718
alias(libs.plugins.android.library) apply false
1819
alias(libs.plugins.kotlin.android) apply false
20+
alias(libs.plugins.androidx.navigation.safeargs) apply false
1921
alias(libs.plugins.dagger.hilt) apply false
2022
alias(libs.plugins.google.services) apply false
2123
alias(libs.plugins.firebase.crashlytics) apply false

gradle/libs.versions.toml

+2-3
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ hilt = "2.48"
4242
android-build = { module = "com.android.tools.build:gradle", version.ref = "gradleplugin" }
4343
kotlin-gradle = { group = "org.jetbrains.kotlin", name = "kotlin-gradle-plugin", version.ref = "kotlin" }
4444
hilt-gradle = { group = "com.google.dagger", name = "hilt-android-gradle-plugin", version.ref = "hilt" }
45+
androidx-navigation-safeargs = { module = "androidx.navigation:navigation-safe-args-gradle-plugin", version.ref="androidx-navigation"}
4546

4647
kotlin = { group = "org.jetbrains.kotlin", name = "kotlin-stdlib", version.ref = "kotlin" }
4748

@@ -54,7 +55,6 @@ androidx-fragment = { module = "androidx.fragment:fragment-ktx", version.ref = "
5455
androidx-navigation-fragment-ktx = { group = "androidx.navigation", name = "navigation-fragment-ktx", version.ref = "androidx-navigation" }
5556
androidx-navigation-ui-ktx = { group = "androidx.navigation", name = "navigation-ui-ktx", version.ref = "androidx-navigation" }
5657

57-
5858
compose-runtime = { module = "androidx.compose.runtime:runtime", version.ref = "compose" }
5959
compose-ui = { module = "androidx.compose.ui:ui", version.ref = "compose" }
6060
compose-ui-tooling-preview = { module = "androidx.compose.ui:ui-tooling-preview", version.ref = "compose" }
@@ -94,8 +94,6 @@ androidx = [
9494
"androidx-lifecycle-viewmodel",
9595
"androidx-fragment",
9696
"androidx-lifecycle-runtime",
97-
"androidx-navigation-fragment-ktx",
98-
"androidx-navigation-ui-ktx",
9997
]
10098

10199
compose = [
@@ -115,6 +113,7 @@ compose = [
115113
[plugins]
116114
android-application = { id = "com.android.application", version.ref = "gradleplugin" }
117115
android-library = { id = "com.android.library", version.ref = "gradleplugin" }
116+
androidx-navigation-safeargs= { id = "androidx.navigation.safeargs", version.ref = "androidx-navigation"}
118117
kotlin-android = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" }
119118
ksp = { id = "com.google.devtools.ksp", version.ref = "ksp" }
120119
google-services = { id = "com.google.gms.google-services", version.ref = "google-services-plugin" }

0 commit comments

Comments
 (0)