Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[라이브러리] hilt kapt > ksp로 전환 #303

Merged
merged 4 commits into from
May 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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" }
Loading