Use ksp (instead of kapt) for Hilt (bitfireAT/davx5#521)

This commit is contained in:
Ricki Hirner 2024-01-31 14:03:34 +01:00
parent d2de737857
commit d108ea8a7b
No known key found for this signature in database
GPG key ID: 79A019FCAAEDD3AA

View file

@ -8,7 +8,7 @@ plugins {
id 'com.mikepenz.aboutlibraries.plugin'
id 'dagger.hilt.android.plugin'
id 'kotlin-android'
id 'kotlin-kapt' // remove as soon as Hilt supports KSP [https://issuetracker.google.com/179057202]
id 'kotlin-kapt' // remove when ui.widget.BindingAdapters are not required anymore
}
aboutLibraries {
@ -134,7 +134,7 @@ dependencies {
coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:2.0.4'
implementation "com.google.dagger:hilt-android:${versions.hilt}"
kapt "com.google.dagger:hilt-android-compiler:${versions.hilt}" // replace by KSP when ready [https://issuetracker.google.com/179057202]
ksp "com.google.dagger:hilt-android-compiler:${versions.hilt}"
// support libs
implementation 'androidx.activity:activity-compose:1.8.2'
@ -146,7 +146,7 @@ dependencies {
implementation 'androidx.core:core-ktx:1.12.0'
implementation 'androidx.fragment:fragment-ktx:1.6.2'
implementation 'androidx.hilt:hilt-work:1.1.0'
kapt 'androidx.hilt:hilt-compiler:1.1.0'
ksp 'androidx.hilt:hilt-compiler:1.1.0'
implementation 'androidx.lifecycle:lifecycle-extensions:2.2.0'
implementation 'androidx.lifecycle:lifecycle-viewmodel-compose:2.7.0'
implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.7.0'
@ -202,7 +202,7 @@ dependencies {
// for tests
androidTestImplementation "com.google.dagger:hilt-android-testing:${versions.hilt}"
kaptAndroidTest "com.google.dagger:hilt-android-compiler:${versions.hilt}"
kspAndroidTest "com.google.dagger:hilt-android-compiler:${versions.hilt}"
androidTestImplementation "androidx.arch.core:core-testing:2.2.0"
androidTestImplementation 'androidx.test:core-ktx:1.5.0'