Skip to content

Commit

Permalink
Migrate to KSP for billing library.
Browse files Browse the repository at this point in the history
The app module still requires Kapt for Dagger and EventBus.
  • Loading branch information
UweTrottmann committed Aug 3, 2023
1 parent de6ccc9 commit 95d77ce
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions billing/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
plugins {
id("com.android.library")
kotlin("android")
kotlin("kapt")
id("com.google.devtools.ksp")
}

val sgCompileSdk: Int by rootProject.extra
Expand Down Expand Up @@ -54,7 +54,7 @@ dependencies {
implementation(libs.androidx.lifecycle.viewmodel)
// Room
implementation(libs.androidx.room.runtime)
kapt(libs.androidx.room.compiler)
ksp(libs.androidx.room.compiler)

implementation(libs.timber)
}
Expand Down
2 changes: 2 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ plugins {
// app, libraries
alias(libs.plugins.android) apply false
alias(libs.plugins.kotlin) apply false
// billing
alias(libs.plugins.ksp) apply false
// Firebase Crashlytics
alias(libs.plugins.google.services) apply false
alias(libs.plugins.firebase.crashlytics) apply false
Expand Down
2 changes: 2 additions & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@ truth = "com.google.truth:truth:1.1.3" # https://github.com/google/truth/release
android = { id = "com.android.application", version = "8.1.0" }
# https://kotlinlang.org/docs/releases.html#release-details
kotlin = { id = "org.jetbrains.kotlin.android", version = "1.8.10" }
# https://github.com/google/ksp/releases Must match Kotlin version!
ksp = { id = "com.google.devtools.ksp", version = "1.8.10-1.0.9" }
# https://github.com/ben-manes/gradle-versions-plugin/releases
versions = { id = "com.github.ben-manes.versions", version = "0.47.0" }
# https://github.com/gradle-nexus/publish-plugin/releases
Expand Down

0 comments on commit 95d77ce

Please sign in to comment.