Skip to content

Commit f36aa8f

Browse files
committed
fix room scheme export
1 parent 04293b2 commit f36aa8f

8 files changed

Lines changed: 3961 additions & 9 deletions

File tree

build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ plugins {
77
alias(libs.plugins.ktlint) apply false
88
alias(libs.plugins.hilt) apply false
99
alias(libs.plugins.ksp) apply false
10+
alias(libs.plugins.room) apply false
1011
}
1112

1213
allprojects {

data_local/build.gradle.kts

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,19 @@ plugins {
55
alias(libs.plugins.gradleLibrary)
66
alias(libs.plugins.kotlin)
77
alias(libs.plugins.ksp)
8+
alias(libs.plugins.room)
89
}
910

1011
applyAndroidLibrary()
1112

1213
android {
13-
defaultConfig {
14-
javaCompileOptions {
15-
annotationProcessorOptions {
16-
arguments += mapOf("room.schemaLocation" to "$projectDir/schemas")
17-
}
18-
}
19-
}
20-
2114
namespace = "${Base.namespace}.data_local"
2215
}
2316

17+
room {
18+
schemaDirectory("$projectDir/schemas")
19+
}
20+
2421
dependencies {
2522
implementation(project(":core"))
2623

0 commit comments

Comments
 (0)