Skip to content
This repository was archived by the owner on Aug 2, 2024. It is now read-only.

Commit 17ff657

Browse files
Upgrade from kapt to ksp and update dependencies
Issue-917: Introduced the ksp plugin in project dagger and hilt dependencies now use ksp instead of kapt. Removed kapt plugin and use overall in project. Changed kotlin version from '1.8.0' to '1.9.10'. Changed hilt version from 2.44.2 to 2.48 as it is the version that supports ksp. Had to change compose-compiler version to 1.5.3 as a result of upgrading kotlin version to '1.9.10'.
1 parent d7df7cb commit 17ff657

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

app/build.gradle.kts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ plugins {
1818
id("com.android.application")
1919
id("kotlin-android")
2020
id("kotlin-parcelize")
21-
id("kotlin-kapt")
21+
id("com.google.devtools.ksp")
2222
id("dagger.hilt.android.plugin")
2323
}
2424

@@ -110,8 +110,8 @@ androidComponents {
110110
}
111111

112112
dependencies {
113-
kapt(libs.androidx.room.compiler)
114-
kapt(libs.hilt.android.compiler)
113+
ksp(libs.androidx.room.compiler)
114+
ksp(libs.hilt.android.compiler)
115115
implementation(libs.androidx.constraintlayout)
116116
implementation(libs.androidx.core.ktx)
117117
implementation(libs.androidx.lifecycle.livedata.ktx)
@@ -152,7 +152,7 @@ dependencies {
152152

153153
// Testing dependencies
154154
debugImplementation(libs.androidx.monitor)
155-
kaptAndroidTest(libs.hilt.android.compiler)
155+
kspAndroidTest(libs.hilt.android.compiler)
156156
androidTestImplementation(platform(libs.androidx.compose.bom))
157157
androidTestImplementation(libs.androidx.arch.core.testing)
158158
androidTestImplementation(libs.androidx.espresso.contrib)

build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ buildscript {
2929

3030
plugins {
3131
id("com.diffplug.spotless") version "6.4.1"
32+
id("com.google.devtools.ksp") version "1.9.10-1.0.13" apply false
3233
}
3334

3435
spotless {

gradle/libs.versions.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ benchmark = "1.1.0"
2222
compileSdk = "33"
2323
composeLatest = "1.4.0-alpha03"
2424
composeBom = "2023.06.01"
25-
compose-compiler = "1.4.6"
25+
compose-compiler = "1.5.3"
2626
constraintLayoutCompose = "1.0.1"
2727
constraintLayout = "2.1.4"
2828
coreTesting = "2.2.0"
@@ -32,10 +32,10 @@ glide = "1.0.0-alpha.3"
3232
gradle = "7.2.0"
3333
gson = "2.9.0"
3434
guava = "31.1-android"
35-
hilt = "2.44.2"
35+
hilt = "2.48"
3636
hiltNavigationCompose = "1.0.0"
3737
junit = "4.13.2"
38-
kotlin = "1.8.20"
38+
kotlin = "1.9.10"
3939
ktlint = "0.40.0"
4040
ktx = "1.7.0"
4141
lifecycle = "2.6.0-alpha04"

0 commit comments

Comments
 (0)