|
|
@ -15,6 +15,7 @@
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
import androidx.room.gradle.RoomExtension
|
|
|
|
import androidx.room.gradle.RoomExtension
|
|
|
|
|
|
|
|
import com.google.devtools.ksp.gradle.KspExtension
|
|
|
|
import com.google.samples.apps.nowinandroid.libs
|
|
|
|
import com.google.samples.apps.nowinandroid.libs
|
|
|
|
import org.gradle.api.Plugin
|
|
|
|
import org.gradle.api.Plugin
|
|
|
|
import org.gradle.api.Project
|
|
|
|
import org.gradle.api.Project
|
|
|
@ -28,6 +29,10 @@ class AndroidRoomConventionPlugin : Plugin<Project> {
|
|
|
|
pluginManager.apply("androidx.room")
|
|
|
|
pluginManager.apply("androidx.room")
|
|
|
|
pluginManager.apply("com.google.devtools.ksp")
|
|
|
|
pluginManager.apply("com.google.devtools.ksp")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
extensions.configure<KspExtension> {
|
|
|
|
|
|
|
|
arg("room.generateKotlin", "true")
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
extensions.configure<RoomExtension> {
|
|
|
|
extensions.configure<RoomExtension> {
|
|
|
|
// The schemas directory contains a schema file for each version of the Room database.
|
|
|
|
// The schemas directory contains a schema file for each version of the Room database.
|
|
|
|
// This is required to enable Room auto migrations.
|
|
|
|
// This is required to enable Room auto migrations.
|
|
|
|