2023-07-24 23:03:08 +02:00
|
|
|
plugins {
|
|
|
|
alias(libs.plugins.kotlin.multiplatform)
|
|
|
|
alias(libs.plugins.android.library)
|
|
|
|
alias(libs.plugins.compose)
|
|
|
|
}
|
|
|
|
|
|
|
|
@OptIn(org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi::class)
|
|
|
|
kotlin {
|
|
|
|
targetHierarchy.default()
|
|
|
|
|
2023-10-22 22:52:48 +02:00
|
|
|
androidTarget {
|
2023-07-24 23:03:08 +02:00
|
|
|
compilations.all {
|
|
|
|
kotlinOptions {
|
2023-09-23 08:42:30 +02:00
|
|
|
jvmTarget = "1.8"
|
2023-07-24 23:03:08 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2023-09-27 23:27:38 +02:00
|
|
|
listOf(
|
|
|
|
iosX64(),
|
|
|
|
iosArm64(),
|
|
|
|
iosSimulatorArm64()
|
|
|
|
).forEach {
|
|
|
|
it.binaries.framework {
|
|
|
|
baseName = "core-md"
|
|
|
|
}
|
|
|
|
}
|
2023-07-24 23:03:08 +02:00
|
|
|
|
|
|
|
sourceSets {
|
2023-10-22 22:52:48 +02:00
|
|
|
val androidMain by getting {
|
|
|
|
dependencies {
|
|
|
|
implementation(libs.markwon.core)
|
|
|
|
implementation(libs.markwon.strikethrough)
|
|
|
|
implementation(libs.markwon.tables)
|
|
|
|
implementation(libs.markwon.html)
|
|
|
|
implementation(libs.markwon.coil)
|
|
|
|
implementation(libs.coil)
|
|
|
|
}
|
|
|
|
}
|
2023-07-24 23:03:08 +02:00
|
|
|
val commonMain by getting {
|
|
|
|
dependencies {
|
|
|
|
implementation(libs.koin.core)
|
|
|
|
implementation(compose.runtime)
|
|
|
|
implementation(compose.foundation)
|
|
|
|
implementation(compose.material3)
|
|
|
|
|
|
|
|
api(libs.markdown)
|
2023-09-23 21:52:56 +02:00
|
|
|
implementation(projects.coreCommonui.components)
|
2023-09-20 08:19:09 +02:00
|
|
|
implementation(projects.resources)
|
2023-07-24 23:03:08 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
val commonTest by getting {
|
|
|
|
dependencies {
|
|
|
|
implementation(kotlin("test"))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
android {
|
2023-08-02 23:37:12 +02:00
|
|
|
namespace = "com.github.diegoberaldin.raccoonforlemmy.core.markdown"
|
2023-09-23 08:42:30 +02:00
|
|
|
compileSdk = libs.versions.android.targetSdk.get().toInt()
|
2023-07-24 23:03:08 +02:00
|
|
|
defaultConfig {
|
2023-09-23 08:42:30 +02:00
|
|
|
minSdk = libs.versions.android.minSdk.get().toInt()
|
2023-07-24 23:03:08 +02:00
|
|
|
}
|
2023-08-02 23:37:12 +02:00
|
|
|
}
|