Skip to content

Commit 252233c

Browse files
committed
replace kapt with ksp
1 parent 5c865d2 commit 252233c

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

app/build.gradle.kts

+3-8
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
plugins {
22
id("com.android.application")
33
id("org.jetbrains.kotlin.android")
4-
kotlin("kapt")
54
id("com.google.dagger.hilt.android")
65
id("kotlin-parcelize")
76
id("com.google.devtools.ksp")
@@ -60,6 +59,7 @@ android {
6059
packaging {
6160
resources {
6261
excludes += "/META-INF/{AL2.0,LGPL2.1}"
62+
excludes += "/META-INF/LICENSE.md"
6363
}
6464
}
6565
}
@@ -153,12 +153,12 @@ dependencies {
153153
// Dependency Management
154154
val hilt = "2.50"
155155
implementation("com.google.dagger:hilt-android:$hilt")
156-
kapt("com.google.dagger:hilt-android-compiler:$hilt")
156+
ksp("com.google.dagger:hilt-android-compiler:$hilt")
157157

158158
val hiltKtx = "1.1.0"
159159
implementation("androidx.hilt:hilt-navigation-compose:$hiltKtx")
160160
implementation("androidx.hilt:hilt-work:$hiltKtx")
161-
kapt("androidx.hilt:hilt-compiler:$hiltKtx")
161+
ksp("androidx.hilt:hilt-compiler:$hiltKtx")
162162

163163
// Image
164164
val coil = "2.5.0"
@@ -192,9 +192,4 @@ dependencies {
192192
debugImplementation("androidx.compose.ui:ui-tooling")
193193
debugImplementation("androidx.compose.ui:ui-test-manifest")
194194

195-
}
196-
197-
// Allow references to generated code
198-
kapt {
199-
correctErrorTypes = true
200195
}

0 commit comments

Comments
 (0)