mirror of
https://github.com/null2264/yokai.git
synced 2025-06-21 10:44:42 +00:00
revert: Revert "Revert "Modularize the app""
This reverts commit f59f2346dc
.
This commit is contained in:
parent
9feba40ab7
commit
2b46f94a5a
290 changed files with 1655 additions and 881 deletions
49
core/build.gradle.kts
Normal file
49
core/build.gradle.kts
Normal file
|
@ -0,0 +1,49 @@
|
|||
plugins {
|
||||
kotlin("multiplatform")
|
||||
kotlin("plugin.serialization")
|
||||
id("com.android.library")
|
||||
}
|
||||
|
||||
kotlin {
|
||||
androidTarget()
|
||||
sourceSets {
|
||||
val commonMain by getting {
|
||||
dependencies {
|
||||
implementation(projects.i18n)
|
||||
api(libs.bundles.logging)
|
||||
}
|
||||
}
|
||||
val androidMain by getting {
|
||||
dependencies {
|
||||
api(libs.okhttp)
|
||||
api(libs.okhttp.logging.interceptor)
|
||||
api(libs.okhttp.dnsoverhttps)
|
||||
api(libs.okhttp.brotli)
|
||||
api(libs.okio)
|
||||
|
||||
api(androidx.preference)
|
||||
api(libs.rxjava)
|
||||
api(project.dependencies.enforcedPlatform(kotlinx.coroutines.bom))
|
||||
api(kotlinx.coroutines.core)
|
||||
api(kotlinx.serialization.json)
|
||||
api(kotlinx.serialization.json.okio)
|
||||
|
||||
implementation(libs.quickjs.android)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
android {
|
||||
namespace = "yokai.core"
|
||||
}
|
||||
|
||||
tasks {
|
||||
withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
|
||||
kotlinOptions.freeCompilerArgs += listOf(
|
||||
"-Xcontext-receivers",
|
||||
"-opt-in=kotlinx.coroutines.ExperimentalCoroutinesApi",
|
||||
"-opt-in=kotlinx.serialization.ExperimentalSerializationApi",
|
||||
)
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue