Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 10 additions & 8 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ plugins {
id("com.android.application")
kotlin("android")
kotlin("kapt")
alias(libs.plugins.ksp)
alias(libs.plugins.compose.compiler)
// Firebase Authentication, Crashlytics
alias(libs.plugins.google.services)
Expand Down Expand Up @@ -48,12 +49,15 @@ kotlin {
kapt {
arguments {
arg("eventBusIndex", "com.battlelancer.seriesguide.SgEventBusIndex")
// Export schema for testing and in case the database ever needs to be built manually
// (like when migrating away from Room).
arg("room.schemaLocation", "$projectDir/schemas")
}
}

ksp {
// Export schema for testing and in case the database ever needs to be built manually
// (like when migrating away from Room).
arg("room.schemaLocation", "$projectDir/schemas")
}

android {
namespace = "com.battlelancer.seriesguide"
compileSdk = sgCompileSdk
Expand Down Expand Up @@ -252,12 +256,10 @@ dependencies {
implementation(libs.androidx.room.ktx)
// Paging 3 Integration
implementation(libs.androidx.room.paging)
// KSP appears deprecated. KSP 2 is still under development.
//noinspection KaptUsageInsteadOfKsp
kapt(libs.androidx.room.compiler)
ksp(libs.androidx.room.compiler)

implementation(libs.dagger)
kapt(libs.dagger.compiler)
ksp(libs.dagger.compiler)
implementation(libs.greenrobot.eventbus)
kapt(libs.greenrobot.eventbus.processor)

Expand Down Expand Up @@ -323,7 +325,7 @@ dependencies {
androidTestImplementation(libs.truth)
implementation(libs.findbugs.jsr305)
androidTestImplementation(libs.findbugs.jsr305)
kaptAndroidTest(libs.dagger.compiler)
kspAndroidTest(libs.dagger.compiler)
androidTestImplementation(libs.androidx.room.testing)

// Local unit tests
Expand Down
2 changes: 2 additions & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,8 @@ androidx-test-runner = "androidx.test:runner:1.7.0"
# https://github.com/UweTrottmann/SeriesGuide/pull/1137, https://github.com/google/ksp/issues/1079).
kotlin = { id = "org.jetbrains.kotlin.android", version = "2.2.21" }
compose-compiler = { id = "org.jetbrains.kotlin.plugin.compose", version = "2.2.21" }
# https://github.com/google/ksp/releases
ksp = { id = "com.google.devtools.ksp", version = "2.3.11" }
# https://developer.android.com/build/releases/gradle-plugin
android = { id = "com.android.application", version = "9.3.1" }
# https://github.com/gradle-nexus/publish-plugin/releases
Expand Down