Skip to content

Commit

Permalink
⬆️ Migration to KSP
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzovngl committed Sep 7, 2023
1 parent ddd1f57 commit 49bb374
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import org.jetbrains.kotlin.gradle.plugin.mpp.pm20.util.archivesName
plugins {
alias(libs.plugins.com.android.application)
alias(libs.plugins.org.jetbrains.kotlin.android)
id("kotlin-kapt")
alias(libs.plugins.com.google.dagger.hilt.android)
alias(libs.plugins.app.cash.paparazzi)
alias(libs.plugins.com.google.devtools.ksp)
}

var firebaseEnabled = true
Expand Down Expand Up @@ -120,13 +120,13 @@ dependencies {
implementation(libs.androidx.room.runtime)
implementation(libs.androidx.room.ktx)
annotationProcessor(libs.androidx.room.compiler)
kapt(libs.androidx.room.compiler)
ksp(libs.androidx.room.compiler)

// Dagger
implementation(libs.dagger)
kapt(libs.dagger.compiler)
ksp(libs.dagger.compiler)
implementation(libs.hilt.android)
kapt(libs.hilt.compiler)
ksp(libs.hilt.compiler)
implementation(libs.androidx.hilt.common)
implementation(libs.androidx.hilt.work)

Expand Down
1 change: 1 addition & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,6 @@ plugins {
alias(libs.plugins.org.jetbrains.kotlin.android) apply false
alias(libs.plugins.com.google.dagger.hilt.android) apply false
alias(libs.plugins.app.cash.paparazzi) apply false
alias(libs.plugins.com.google.devtools.ksp) apply false
}
true // Needed to make the Suppress annotation work for the plugins block
2 changes: 2 additions & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ firebase-crashlytics-gradle = "2.9.9"
google-services = "4.3.15"
hilt-common = "1.0.0"
junit = "4.13.2"
ksp = "1.9.10-1.0.13"
lifecycle-runtime-ktx = "2.6.1"
org-jetbrains-kotlin-android = "1.9.10"
paparazzi = "1.3.1"
Expand Down Expand Up @@ -64,6 +65,7 @@ app-cash-paparazzi = { id = "app.cash.paparazzi", version.ref = "paparazzi"}
com-android-application = { id = "com.android.application", version.ref = "agp" }
com-android-library = {id = "com.android.library", version.ref = "agp"}
com-google-dagger-hilt-android = { id = "com.google.dagger.hilt.android", version.ref = "dagger-hilt"}
com-google-devtools-ksp = { id = "com.google.devtools.ksp", version.ref = "ksp"}
org-jetbrains-kotlin-android = { id = "org.jetbrains.kotlin.android", version.ref = "org-jetbrains-kotlin-android" }

[bundles]

0 comments on commit 49bb374

Please sign in to comment.