mirror of
https://github.com/null2264/yokai.git
synced 2025-06-21 02:34:39 +00:00
* refactor: Modularize the project * chore: Move okhttp stuff back to androidMain OkHttp decided to cancel multiplatform plan on 5.0 REF: https://square.github.io/okhttp/changelogs/changelog/#version-500-alpha13 * feat: Start using moko for i18n * fix: Solve some errors * chore: Remove manga from domain module We'll do this later * fix: Duplicate error * fix: Conflict function name error * fix: Target SManga * fix: Breaking changes after the split * fix: Not enough heap memory * chore: Update proguard rules Sorta similar to upstream * refactor: Fix namespace
49 lines
1.3 KiB
Kotlin
49 lines
1.3 KiB
Kotlin
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",
|
|
)
|
|
}
|
|
}
|