2021-05-15 00:51:08 +08:00
|
|
|
plugins {
|
|
|
|
kotlin("android")
|
|
|
|
id("kotlinx-serialization")
|
2021-09-11 14:53:09 +08:00
|
|
|
id("com.android.library")
|
2021-05-15 00:51:08 +08:00
|
|
|
id("com.google.devtools.ksp")
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2021-09-11 14:53:09 +08:00
|
|
|
implementation(project(":core"))
|
|
|
|
implementation(project(":common"))
|
2021-06-13 12:32:10 +08:00
|
|
|
|
2022-03-22 13:48:02 +08:00
|
|
|
ksp(libs.kaidl.compiler)
|
2022-07-01 12:07:23 +08:00
|
|
|
ksp(libs.androidx.room.compiler)
|
2022-01-14 23:40:41 +08:00
|
|
|
|
2022-03-22 13:48:02 +08:00
|
|
|
implementation(libs.kotlin.coroutine)
|
|
|
|
implementation(libs.kotlin.serialization.json)
|
|
|
|
implementation(libs.androidx.core)
|
|
|
|
implementation(libs.androidx.room.runtime)
|
|
|
|
implementation(libs.androidx.room.ktx)
|
|
|
|
implementation(libs.kaidl.runtime)
|
|
|
|
implementation(libs.rikkax.multiprocess)
|
2022-12-10 02:05:45 +08:00
|
|
|
implementation(platform("com.squareup.okhttp3:okhttp-bom:4.10.0"))
|
|
|
|
|
|
|
|
// define any required OkHttp artifacts without version
|
|
|
|
implementation("com.squareup.okhttp3:okhttp")
|
|
|
|
implementation("com.squareup.okhttp3:logging-interceptor")
|
2021-05-25 19:40:44 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
afterEvaluate {
|
|
|
|
android {
|
|
|
|
libraryVariants.forEach {
|
2022-07-01 12:07:23 +08:00
|
|
|
sourceSets[it.name].kotlin.srcDir(buildDir.resolve("generated/ksp/${it.name}/kotlin"))
|
|
|
|
sourceSets[it.name].java.srcDir(buildDir.resolve("generated/ksp/${it.name}/java"))
|
2021-05-25 19:40:44 +08:00
|
|
|
}
|
|
|
|
}
|
2021-05-15 00:51:08 +08:00
|
|
|
}
|