Skip to content

Commit

Permalink
refactor: Use ksp instead of kapt for Hilt (#181)
Browse files Browse the repository at this point in the history
This removes all use of kapt from the project.
  • Loading branch information
nikclayton authored Oct 18, 2023
1 parent e59eebc commit 0730c01
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
5 changes: 2 additions & 3 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ plugins {
alias(libs.plugins.android.application)
alias(libs.plugins.google.ksp)
alias(libs.plugins.kotlin.android)
alias(libs.plugins.kotlin.kapt)
alias(libs.plugins.kotlin.parcelize)
alias(libs.plugins.aboutlibraries)
alias(libs.plugins.hilt)
Expand Down Expand Up @@ -174,7 +173,7 @@ dependencies {
implementation libs.bundles.autodispose

implementation libs.hilt.android
kapt libs.hilt.compiler
ksp libs.hilt.compiler

implementation libs.sparkbutton

Expand Down Expand Up @@ -205,7 +204,7 @@ dependencies {
testImplementation libs.turbine
testImplementation libs.androidx.test.core.ktx
testImplementation libs.hilt.android.testing
kaptTest libs.hilt.compiler
kspTest libs.hilt.compiler

androidTestImplementation libs.espresso.core
androidTestImplementation libs.androidx.room.testing
Expand Down
1 change: 0 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ plugins {
alias(libs.plugins.android.application) apply false
alias(libs.plugins.google.ksp) apply false
alias(libs.plugins.kotlin.android) apply false
alias(libs.plugins.kotlin.kapt) apply false
alias(libs.plugins.kotlin.parcelize) apply false
alias(libs.plugins.ktlint) apply false
alias(libs.plugins.aboutlibraries) apply false
Expand Down
1 change: 0 additions & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ android-application = { id = "com.android.application", version.ref = "agp" }
google-ksp = "com.google.devtools.ksp:1.9.10-1.0.13"
hilt = { id = "com.google.dagger.hilt.android", version.ref = "hilt" }
kotlin-android = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" }
kotlin-kapt = { id = "org.jetbrains.kotlin.kapt", version.ref = "kotlin" }
kotlin-parcelize = { id = "org.jetbrains.kotlin.plugin.parcelize", version.ref = "kotlin" }
ktlint = "org.jlleitschuh.gradle.ktlint:11.6.1"

Expand Down

0 comments on commit 0730c01

Please sign in to comment.