mirror of
https://github.com/null2264/yokai.git
synced 2025-06-21 10:44:42 +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
43 lines
836 B
Kotlin
43 lines
836 B
Kotlin
plugins {
|
|
kotlin("multiplatform")
|
|
id("com.android.library")
|
|
id("dev.icerock.mobile.multiplatform-resources")
|
|
}
|
|
|
|
kotlin {
|
|
androidTarget()
|
|
|
|
applyDefaultHierarchyTemplate()
|
|
|
|
sourceSets {
|
|
val commonMain by getting {
|
|
dependencies {
|
|
api(libs.moko.resources)
|
|
}
|
|
}
|
|
val androidMain by getting {
|
|
dependsOn(commonMain)
|
|
}
|
|
}
|
|
}
|
|
|
|
android {
|
|
namespace = "yokai.i18n"
|
|
}
|
|
|
|
multiplatformResources {
|
|
resourcesPackage.set("yokai.i18n")
|
|
}
|
|
|
|
tasks {
|
|
val localesConfigTask = registerLocalesConfigTask(project)
|
|
preBuild {
|
|
dependsOn(localesConfigTask)
|
|
}
|
|
|
|
withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
|
|
kotlinOptions.freeCompilerArgs += listOf(
|
|
"-Xexpect-actual-classes",
|
|
)
|
|
}
|
|
}
|