diff --git a/android/torrentengine/build.gradle.kts b/android/torrentengine/build.gradle.kts index e42c0d0..a7d55f1 100644 --- a/android/torrentengine/build.gradle.kts +++ b/android/torrentengine/build.gradle.kts @@ -34,6 +34,12 @@ android { kotlinOptions { jvmTarget = "17" } + + // KAPT configuration for Kotlin 2.1.0 compatibility + kapt { + correctErrorTypes = true + useBuildCache = true + } } dependencies { @@ -50,10 +56,10 @@ dependencies { implementation("androidx.lifecycle:lifecycle-runtime-ktx:2.8.7") implementation("androidx.lifecycle:lifecycle-service:2.8.7") - // Room database for torrent state persistence - implementation("androidx.room:room-runtime:2.6.1") - implementation("androidx.room:room-ktx:2.6.1") - kapt("androidx.room:room-compiler:2.6.1") + // Room database for torrent state persistence - updated for Kotlin 2.1.0 + implementation("androidx.room:room-runtime:2.7.0-alpha09") + implementation("androidx.room:room-ktx:2.7.0-alpha09") + kapt("androidx.room:room-compiler:2.7.0-alpha09") // WorkManager for background tasks implementation("androidx.work:work-runtime-ktx:2.10.0")