Skip to content

Commit

Permalink
chore: upgrade hilt to use ksp (#2174)
Browse files Browse the repository at this point in the history
  • Loading branch information
vitorhugods authored and github-actions[bot] committed Sep 4, 2023
1 parent 780f878 commit bc303d3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 9 deletions.
4 changes: 0 additions & 4 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,6 @@ android {
}
}

kapt {
correctErrorTypes = true
}

dependencies {
implementation("com.wire.kalium:kalium-logic")
implementation("com.wire.kalium:kalium-util")
Expand Down
7 changes: 3 additions & 4 deletions build-logic/plugins/src/main/kotlin/HiltConventionPlugin.kt
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,15 @@ class HiltConventionPlugin : Plugin<Project> {
override fun apply(target: Project): Unit = with(target) {
with(pluginManager) {
apply("dagger.hilt.android.plugin")
// TODO: Replace with KSP as soon as Hilt supports it
apply("org.jetbrains.kotlin.kapt")
apply("com.google.devtools.ksp")
}

dependencies {
add("implementation", findLibrary("hilt.android"))
add("androidTestImplementation", findLibrary("hilt.android"))

add("kapt", findLibrary("hilt.compiler"))
add("kaptAndroidTest", findLibrary("hilt.compiler"))
add("ksp", findLibrary("hilt.compiler"))
add("kspAndroidTest", findLibrary("hilt.compiler"))

add("androidTestImplementation", findLibrary("hilt.test"))
}
Expand Down
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ compose-navigation = "2.6.0"
compose-destinations = "1.9.40-beta"

# Hilt
hilt = "2.47"
hilt = "2.48"
hilt-composeNavigation = "1.0.0"
hilt-work = "1.0.0"

Expand Down

0 comments on commit bc303d3

Please sign in to comment.