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

Commit

Permalink
Upgrade from kapt to ksp and update dependencies
Browse files Browse the repository at this point in the history
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'.
  • Loading branch information
Code-indomitus authored Oct 13, 2023
1 parent d7df7cb commit 17ff657
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
8 changes: 4 additions & 4 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ plugins {
id("com.android.application")
id("kotlin-android")
id("kotlin-parcelize")
id("kotlin-kapt")
id("com.google.devtools.ksp")
id("dagger.hilt.android.plugin")
}

Expand Down Expand Up @@ -110,8 +110,8 @@ androidComponents {
}

dependencies {
kapt(libs.androidx.room.compiler)
kapt(libs.hilt.android.compiler)
ksp(libs.androidx.room.compiler)
ksp(libs.hilt.android.compiler)
implementation(libs.androidx.constraintlayout)
implementation(libs.androidx.core.ktx)
implementation(libs.androidx.lifecycle.livedata.ktx)
Expand Down Expand Up @@ -152,7 +152,7 @@ dependencies {

// Testing dependencies
debugImplementation(libs.androidx.monitor)
kaptAndroidTest(libs.hilt.android.compiler)
kspAndroidTest(libs.hilt.android.compiler)
androidTestImplementation(platform(libs.androidx.compose.bom))
androidTestImplementation(libs.androidx.arch.core.testing)
androidTestImplementation(libs.androidx.espresso.contrib)
Expand Down
1 change: 1 addition & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ buildscript {

plugins {
id("com.diffplug.spotless") version "6.4.1"
id("com.google.devtools.ksp") version "1.9.10-1.0.13" apply false
}

spotless {
Expand Down
6 changes: 3 additions & 3 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ benchmark = "1.1.0"
compileSdk = "33"
composeLatest = "1.4.0-alpha03"
composeBom = "2023.06.01"
compose-compiler = "1.4.6"
compose-compiler = "1.5.3"
constraintLayoutCompose = "1.0.1"
constraintLayout = "2.1.4"
coreTesting = "2.2.0"
Expand All @@ -32,10 +32,10 @@ glide = "1.0.0-alpha.3"
gradle = "7.2.0"
gson = "2.9.0"
guava = "31.1-android"
hilt = "2.44.2"
hilt = "2.48"
hiltNavigationCompose = "1.0.0"
junit = "4.13.2"
kotlin = "1.8.20"
kotlin = "1.9.10"
ktlint = "0.40.0"
ktx = "1.7.0"
lifecycle = "2.6.0-alpha04"
Expand Down

0 comments on commit 17ff657

Please sign in to comment.