mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-10-31 16:22:49 +00:00
fix(deps): update kotlin (#4552)
* fix(deps): update kotlin * Fix deprecation warning * Remove this workaround, it's not needed anymore, and was causing a compilation error: * What went wrong: A problem occurred configuring project ':libraries:session-storage:impl'. > Failed to notify project evaluation listener. > Element 'kspDebugKotlin' of type 'com.google.devtools.ksp.gradle.KspAATask_Decorated' from container 'task set' cannot be cast to 'org.jetbrains.kotlin.gradle.tasks.KotlinCompile'. > Element 'kspReleaseKotlin' of type 'com.google.devtools.ksp.gradle.KspAATask_Decorated' from container 'task set' cannot be cast to 'org.jetbrains.kotlin.gradle.tasks.KotlinCompile'. --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Benoit Marty <benoit@matrix.org>
This commit is contained in:
@@ -1,6 +1,4 @@
|
||||
import extension.setupAnvil
|
||||
import org.gradle.internal.extensions.stdlib.capitalized
|
||||
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
||||
|
||||
/*
|
||||
* Copyright 2023, 2024 New Vector Ltd.
|
||||
@@ -52,15 +50,3 @@ sqldelight {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Workaround for KSP not picking up the generated files from SqlDelight
|
||||
androidComponents {
|
||||
onVariants(selector().all()) { variant ->
|
||||
afterEvaluate {
|
||||
val variantName = variant.name.capitalized()
|
||||
tasks.getByName<KotlinCompile>("ksp${variantName}Kotlin") {
|
||||
setSource(tasks.getByName("generate${variantName}SessionDatabaseInterface").outputs)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user