add android code

add android code
This commit is contained in:
Zeus
2024-10-23 22:33:02 +08:00
parent e5ed61e5e1
commit f28fdbb377
1672 changed files with 194066 additions and 0 deletions
@@ -0,0 +1,36 @@
plugins {
kotlin("android")
id("kotlinx-serialization")
id("com.android.library")
id("com.google.devtools.ksp")
}
dependencies {
implementation(project(":core"))
implementation(project(":common"))
ksp(libs.kaidl.compiler)
ksp(libs.androidx.room.compiler)
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)
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")
}
afterEvaluate {
android {
libraryVariants.forEach {
sourceSets[it.name].kotlin.srcDir(buildDir.resolve("generated/ksp/${it.name}/kotlin"))
sourceSets[it.name].java.srcDir(buildDir.resolve("generated/ksp/${it.name}/java"))
}
}
}