Skip to content

Commit

Permalink
Merge pull request #303 from ParkJong-Hun/feature/#296
Browse files Browse the repository at this point in the history
[라이브러리] hilt kapt > ksp로 전환
  • Loading branch information
taehwandev authored May 28, 2024
2 parents 9c02728 + 5682606 commit c4709b1
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ import org.gradle.kotlin.dsl.dependencies
internal fun Project.configureHiltAndroid() {
with(pluginManager) {
apply("dagger.hilt.android.plugin")
apply("org.jetbrains.kotlin.kapt")
apply("com.google.devtools.ksp")
}

val libs = extensions.libs
dependencies {
"implementation"(libs.findLibrary("hilt.android").get())
"kapt"(libs.findLibrary("hilt.android.compiler").get())
"kaptAndroidTest"(libs.findLibrary("hilt.android.compiler").get())
"ksp"(libs.findLibrary("hilt.android.compiler").get())
"kspAndroidTest"(libs.findLibrary("hilt.android.compiler").get())
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ import org.gradle.kotlin.dsl.dependencies

internal fun Project.configureHiltKotlin() {
with(pluginManager) {
apply("org.jetbrains.kotlin.kapt")
apply("com.google.devtools.ksp")
}

val libs = extensions.libs
dependencies {
"implementation"(libs.findLibrary("hilt.core").get())
"kapt"(libs.findLibrary("hilt.compiler").get())
"ksp"(libs.findLibrary("hilt.compiler").get())
}
}

Expand Down
1 change: 1 addition & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ plugins {
alias(libs.plugins.kotlin.serialization) apply false
alias(libs.plugins.hilt) apply false
alias(libs.plugins.verify.detekt) apply false
alias(libs.plugins.ksp) apply false
}

apply {
Expand Down
5 changes: 5 additions & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ landscapist = "2.3.3"
# https://github.com/valentinilk/compose-shimmer
composeShimmer = "1.3.0"

## Kotlin Symbol Processing
# https://github.com/google/ksp/
ksp = "1.9.24-1.0.20"

## Hilt
# https://github.com/google/dagger/releases
hilt = "2.51.1"
Expand Down Expand Up @@ -167,5 +171,6 @@ android-library = { id = "com.android.library", version.ref = "androidGradlePlug
kotlin-android = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" }
kotlin-jvm = { id = "org.jetbrains.kotlin.jvm", version.ref = "kotlin" }
kotlin-serialization = { id = "org.jetbrains.kotlin.plugin.serialization", version.ref = "kotlin" }
ksp = { id = "com.google.devtools.ksp", version.ref = "ksp" }
hilt = { id = "com.google.dagger.hilt.android", version.ref = "hilt" }
verify-detekt = { id = "io.gitlab.arturbosch.detekt", version.ref = "detekt" }

0 comments on commit c4709b1

Please sign in to comment.