2023-07-23 11:41:01 +02:00
|
|
|
plugins {
|
|
|
|
alias(libs.plugins.kotlin.multiplatform)
|
|
|
|
alias(libs.plugins.android.library)
|
|
|
|
}
|
|
|
|
|
|
|
|
@OptIn(org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi::class)
|
|
|
|
kotlin {
|
2023-12-04 19:36:34 +01:00
|
|
|
applyDefaultHierarchyTemplate()
|
2023-07-23 11:41:01 +02:00
|
|
|
|
2023-11-06 22:48:51 +01:00
|
|
|
androidTarget {
|
2023-07-23 11:41:01 +02:00
|
|
|
compilations.all {
|
|
|
|
kotlinOptions {
|
2023-08-03 23:13:38 +02:00
|
|
|
jvmTarget = "1.8"
|
2023-07-23 11:41:01 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2023-09-27 23:27:38 +02:00
|
|
|
listOf(
|
|
|
|
iosX64(),
|
|
|
|
iosArm64(),
|
|
|
|
iosSimulatorArm64()
|
|
|
|
).forEach {
|
|
|
|
it.binaries.framework {
|
|
|
|
baseName = "domain-lemmy"
|
|
|
|
}
|
|
|
|
}
|
2023-07-23 11:41:01 +02:00
|
|
|
|
|
|
|
sourceSets {
|
|
|
|
val commonMain by getting {
|
|
|
|
dependencies {
|
2023-08-01 19:03:06 +02:00
|
|
|
// put your multiplatform dependencies here
|
2023-07-23 11:41:01 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
val commonTest by getting {
|
|
|
|
dependencies {
|
|
|
|
implementation(kotlin("test"))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
android {
|
2023-09-26 18:39:49 +02:00
|
|
|
namespace = "com.github.diegoberaldin.raccoonforlemmy.domain.lemmy"
|
2023-09-23 08:42:30 +02:00
|
|
|
compileSdk = libs.versions.android.targetSdk.get().toInt()
|
2023-07-23 11:41:01 +02:00
|
|
|
defaultConfig {
|
2023-09-23 08:42:30 +02:00
|
|
|
minSdk = libs.versions.android.minSdk.get().toInt()
|
2023-07-23 11:41:01 +02:00
|
|
|
}
|
2023-08-01 19:03:06 +02:00
|
|
|
}
|