프로젝트가 이미 KSP를 사용하고 있어 KSP 인수 기반으로 Room 스키마 export를 활성화했습니다.
- app/build.gradle: ksp { room.schemaLocation 등 } 추가
- Room DB 클래스 3종: exportSchema=true
- app/schemas 디렉터리 버전 관리
32 lines
992 B
Groovy
32 lines
992 B
Groovy
// Top-level build file where you can add configuration options common to all sub-projects/modules.
|
|
buildscript {
|
|
ext {
|
|
kotlin_version = '2.0.21'
|
|
}
|
|
repositories {
|
|
google()
|
|
mavenCentral()
|
|
maven { url "https://jitpack.io" }
|
|
}
|
|
|
|
dependencies {
|
|
classpath 'com.google.android.gms:oss-licenses-plugin:0.10.6'
|
|
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
|
}
|
|
}
|
|
|
|
plugins {
|
|
id 'com.android.application' version '8.7.2' apply false
|
|
id 'com.android.library' version '8.7.2' apply false
|
|
id 'org.jetbrains.kotlin.android' version '2.0.21' apply false
|
|
id 'com.google.devtools.ksp' version '2.0.21-1.0.25' apply false
|
|
|
|
id "org.jlleitschuh.gradle.ktlint" version "11.2.0"
|
|
id 'com.google.gms.google-services' version '4.3.15' apply false
|
|
id 'com.google.firebase.crashlytics' version "2.9.8" apply false
|
|
}
|
|
|
|
tasks.register('clean', Delete) {
|
|
delete rootProject.layout.buildDirectory
|
|
}
|