fix(deps): update androidx.room to v2.6.0 (#198)
Enable Kotlin code generation, and use the new room plugin to generate schemas in a reproducible/cacheable way.
This commit is contained in:
parent
9c4ea13d23
commit
6b12ecfd7a
|
@ -5,6 +5,7 @@ plugins {
|
|||
alias(libs.plugins.kotlin.parcelize)
|
||||
alias(libs.plugins.aboutlibraries)
|
||||
alias(libs.plugins.hilt)
|
||||
alias(libs.plugins.room)
|
||||
|
||||
id "app.pachli.plugins.markdown2resource"
|
||||
}
|
||||
|
@ -122,9 +123,13 @@ android {
|
|||
}
|
||||
}
|
||||
|
||||
room {
|
||||
schemaDirectory("$projectDir/schemas/")
|
||||
}
|
||||
|
||||
ksp {
|
||||
arg("room.schemaLocation", "$projectDir/schemas")
|
||||
arg("room.incremental", "true")
|
||||
arg("room.generateKotlin", "true")
|
||||
}
|
||||
|
||||
configurations {
|
||||
|
|
|
@ -22,7 +22,7 @@ androidx-testing = "2.2.0"
|
|||
androidx-test-core-ktx = "1.5.0"
|
||||
androidx-viewpager2 = "1.0.0"
|
||||
androidx-work = "2.8.1"
|
||||
androidx-room = "2.5.2"
|
||||
androidx-room = "2.6.0"
|
||||
autodispose = "2.2.1"
|
||||
bouncycastle = "1.70"
|
||||
conscrypt = "2.5.2"
|
||||
|
@ -65,6 +65,7 @@ hilt = { id = "com.google.dagger.hilt.android", version.ref = "hilt" }
|
|||
kotlin-android = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" }
|
||||
kotlin-parcelize = { id = "org.jetbrains.kotlin.plugin.parcelize", version.ref = "kotlin" }
|
||||
ktlint = "org.jlleitschuh.gradle.ktlint:11.6.1"
|
||||
room = { id = "androidx.room", version.ref = "androidx-room" }
|
||||
|
||||
[libraries]
|
||||
aboutlibraries-core = { module = "com.mikepenz:aboutlibraries-core", version.ref = "aboutlibraries" }
|
||||
|
|
Loading…
Reference in New Issue