refactor: Use ksp instead of kapt for Hilt (#181)

This removes all use of kapt from the project.
This commit is contained in:
Nik Clayton 2023-10-18 15:02:17 +02:00 committed by GitHub
parent e59eebc5e4
commit 0730c0190b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 2 additions and 5 deletions

View File

@ -2,7 +2,6 @@ plugins {
alias(libs.plugins.android.application) alias(libs.plugins.android.application)
alias(libs.plugins.google.ksp) alias(libs.plugins.google.ksp)
alias(libs.plugins.kotlin.android) alias(libs.plugins.kotlin.android)
alias(libs.plugins.kotlin.kapt)
alias(libs.plugins.kotlin.parcelize) alias(libs.plugins.kotlin.parcelize)
alias(libs.plugins.aboutlibraries) alias(libs.plugins.aboutlibraries)
alias(libs.plugins.hilt) alias(libs.plugins.hilt)
@ -174,7 +173,7 @@ dependencies {
implementation libs.bundles.autodispose implementation libs.bundles.autodispose
implementation libs.hilt.android implementation libs.hilt.android
kapt libs.hilt.compiler ksp libs.hilt.compiler
implementation libs.sparkbutton implementation libs.sparkbutton
@ -205,7 +204,7 @@ dependencies {
testImplementation libs.turbine testImplementation libs.turbine
testImplementation libs.androidx.test.core.ktx testImplementation libs.androidx.test.core.ktx
testImplementation libs.hilt.android.testing testImplementation libs.hilt.android.testing
kaptTest libs.hilt.compiler kspTest libs.hilt.compiler
androidTestImplementation libs.espresso.core androidTestImplementation libs.espresso.core
androidTestImplementation libs.androidx.room.testing androidTestImplementation libs.androidx.room.testing

View File

@ -2,7 +2,6 @@ plugins {
alias(libs.plugins.android.application) apply false alias(libs.plugins.android.application) apply false
alias(libs.plugins.google.ksp) apply false alias(libs.plugins.google.ksp) apply false
alias(libs.plugins.kotlin.android) 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.kotlin.parcelize) apply false
alias(libs.plugins.ktlint) apply false alias(libs.plugins.ktlint) apply false
alias(libs.plugins.aboutlibraries) apply false alias(libs.plugins.aboutlibraries) apply false

View File

@ -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" google-ksp = "com.google.devtools.ksp:1.9.10-1.0.13"
hilt = { id = "com.google.dagger.hilt.android", version.ref = "hilt" } hilt = { id = "com.google.dagger.hilt.android", version.ref = "hilt" }
kotlin-android = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" } 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" } kotlin-parcelize = { id = "org.jetbrains.kotlin.plugin.parcelize", version.ref = "kotlin" }
ktlint = "org.jlleitschuh.gradle.ktlint:11.6.1" ktlint = "org.jlleitschuh.gradle.ktlint:11.6.1"