mirror of
https://github.com/null2264/yokai.git
synced 2025-06-20 18:24:42 +00:00
* refactor: Use Koin An experiment, aims to ditch Injekt and replace it with Koin while providing Injekt API facade for extensions * fix: Mimic "InjektScope" * fix: Mimic more classes Completely fixed source search * refactor(deps): Use Injekt-Koin library * fix(r8): Keep Koin
46 lines
1.2 KiB
Kotlin
46 lines
1.2 KiB
Kotlin
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
|
|
|
plugins {
|
|
alias(androidx.plugins.library)
|
|
alias(kotlinx.plugins.multiplatform)
|
|
alias(kotlinx.plugins.serialization)
|
|
}
|
|
|
|
kotlin {
|
|
androidTarget()
|
|
sourceSets {
|
|
val commonMain by getting {
|
|
dependencies {
|
|
api(kotlinx.serialization.json)
|
|
api(project.dependencies.platform(libs.koin.bom))
|
|
api(libs.koin.core)
|
|
api(libs.koin.injekt)
|
|
api(libs.rxjava)
|
|
api(libs.jsoup)
|
|
}
|
|
}
|
|
val androidMain by getting {
|
|
dependencies {
|
|
implementation(projects.core)
|
|
api(androidx.preference)
|
|
|
|
// Workaround for https://youtrack.jetbrains.com/issue/KT-57605
|
|
implementation(kotlinx.coroutines.android)
|
|
implementation(project.dependencies.platform(kotlinx.coroutines.bom))
|
|
}
|
|
}
|
|
}
|
|
}
|
|
android {
|
|
namespace = "eu.kanade.tachiyomi.source"
|
|
defaultConfig {
|
|
consumerProguardFile("consumer-proguard.pro")
|
|
}
|
|
}
|
|
tasks {
|
|
withType<KotlinCompile> {
|
|
compilerOptions.freeCompilerArgs.addAll(
|
|
"-Xexpect-actual-classes",
|
|
)
|
|
}
|
|
}
|