2023-07-20 14:24:50 +02:00
|
|
|
plugins {
|
|
|
|
alias(libs.plugins.kotlin.multiplatform)
|
|
|
|
alias(libs.plugins.android.library)
|
|
|
|
alias(libs.plugins.compose)
|
2024-03-30 09:11:40 +01:00
|
|
|
alias(libs.plugins.detekt)
|
2023-07-20 14:24:50 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
@OptIn(org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi::class)
|
|
|
|
kotlin {
|
2023-12-04 19:36:34 +01:00
|
|
|
applyDefaultHierarchyTemplate()
|
2023-07-20 14:24:50 +02:00
|
|
|
|
2023-11-06 22:48:51 +01:00
|
|
|
androidTarget {
|
2023-07-20 14:24:50 +02:00
|
|
|
compilations.all {
|
|
|
|
kotlinOptions {
|
2023-09-23 08:42:30 +02:00
|
|
|
jvmTarget = "1.8"
|
2023-07-20 14:24:50 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2023-09-27 23:27:38 +02:00
|
|
|
listOf(
|
|
|
|
iosX64(),
|
|
|
|
iosArm64(),
|
2024-05-15 23:49:48 +02:00
|
|
|
iosSimulatorArm64(),
|
2023-09-27 23:27:38 +02:00
|
|
|
).forEach {
|
|
|
|
it.binaries.framework {
|
2024-05-17 23:33:30 +02:00
|
|
|
baseName = "core.utils"
|
|
|
|
isStatic = true
|
2023-09-27 23:27:38 +02:00
|
|
|
}
|
|
|
|
}
|
2023-07-20 14:24:50 +02:00
|
|
|
|
|
|
|
sourceSets {
|
|
|
|
val commonMain by getting {
|
|
|
|
dependencies {
|
|
|
|
implementation(compose.runtime)
|
|
|
|
implementation(compose.foundation)
|
|
|
|
implementation(compose.material3)
|
2023-08-02 18:53:11 +02:00
|
|
|
|
|
|
|
implementation(libs.koin.core)
|
2023-09-18 19:31:39 +02:00
|
|
|
implementation(libs.ktor.cio)
|
2023-11-28 20:38:53 +01:00
|
|
|
implementation(project.dependencies.platform(libs.kotlincrypto.bom))
|
|
|
|
implementation(libs.kotlincrypto.md5)
|
2023-11-12 22:26:19 +01:00
|
|
|
|
2024-02-13 22:37:13 +01:00
|
|
|
implementation(projects.core.l10n)
|
2023-07-20 14:24:50 +02:00
|
|
|
}
|
|
|
|
}
|
2023-12-04 19:36:34 +01:00
|
|
|
val androidMain by getting {
|
|
|
|
dependencies {
|
|
|
|
dependsOn(commonMain)
|
|
|
|
implementation(libs.androidx.activity.compose)
|
|
|
|
implementation(libs.androidx.activity)
|
2024-04-29 07:38:14 +02:00
|
|
|
implementation(libs.androidx.browser)
|
2023-12-04 19:36:34 +01:00
|
|
|
implementation(libs.ktor.android)
|
2023-12-17 23:36:07 +01:00
|
|
|
implementation(libs.coil)
|
2023-12-22 11:39:20 +01:00
|
|
|
implementation(libs.coil.gif)
|
2023-12-04 19:36:34 +01:00
|
|
|
}
|
|
|
|
}
|
2024-03-18 23:21:19 +01:00
|
|
|
val androidUnitTest by getting {
|
|
|
|
dependencies {
|
|
|
|
implementation(libs.kotlinx.coroutines.test)
|
|
|
|
implementation(kotlin("test-junit"))
|
|
|
|
implementation(libs.mockk)
|
2024-03-20 13:32:06 +01:00
|
|
|
implementation(libs.turbine)
|
2024-03-18 23:21:19 +01:00
|
|
|
implementation(projects.core.testutils)
|
|
|
|
}
|
|
|
|
}
|
2023-07-20 14:24:50 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
android {
|
2023-09-26 18:39:49 +02:00
|
|
|
namespace = "com.github.diegoberaldin.raccoonforlemmy.core.utils"
|
2023-09-23 08:42:30 +02:00
|
|
|
compileSdk = libs.versions.android.targetSdk.get().toInt()
|
2023-07-20 14:24:50 +02:00
|
|
|
defaultConfig {
|
2023-09-23 08:42:30 +02:00
|
|
|
minSdk = libs.versions.android.minSdk.get().toInt()
|
2023-07-20 14:24:50 +02:00
|
|
|
}
|
2023-08-02 18:53:11 +02:00
|
|
|
}
|