Skip to content
Snippets Groups Projects
Commit c48ce826 authored by kr328's avatar kr328
Browse files

Fix: fix generated ksp search path

parent 5594485b
No related branches found
No related tags found
No related merge requests found
...@@ -48,15 +48,6 @@ android { ...@@ -48,15 +48,6 @@ android {
kotlinOptions { kotlinOptions {
jvmTarget = "1.8" jvmTarget = "1.8"
} }
sourceSets {
named("debug") {
java.srcDir(buildDir.resolve("generated/ksp/debug/kotlin"))
}
named("release") {
java.srcDir(buildDir.resolve("generated/ksp/release/kotlin"))
}
}
} }
dependencies { dependencies {
...@@ -74,4 +65,12 @@ dependencies { ...@@ -74,4 +65,12 @@ dependencies {
implementation("androidx.core:core-ktx:$coreVersion") implementation("androidx.core:core-ktx:$coreVersion")
implementation("dev.rikka.rikkax.preference:multiprocess:$muiltprocessVersion") implementation("dev.rikka.rikkax.preference:multiprocess:$muiltprocessVersion")
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:$serializationVersion") implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:$serializationVersion")
}
afterEvaluate {
android {
libraryVariants.forEach {
sourceSets[it.name].java.srcDir(buildDir.resolve("generated/ksp/${it.name}/kotlin"))
}
}
} }
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment