59 lines
1.3 KiB
Plaintext
59 lines
1.3 KiB
Plaintext
val versions = mapOf(
|
|
"kotlinx-datetime" to "0.6.2",
|
|
"assertk" to "0.28.1",
|
|
)
|
|
|
|
plugins {
|
|
alias(libs.plugins.kotlinMultiplatform)
|
|
alias(libs.plugins.androidLibrary)
|
|
id("dev.mokkery") version "2.0.0"
|
|
kotlin("plugin.allopen") version "2.1.10"
|
|
}
|
|
|
|
kotlin {
|
|
androidTarget {
|
|
compilations.all {
|
|
kotlinOptions {
|
|
jvmTarget = "1.8"
|
|
}
|
|
}
|
|
}
|
|
|
|
listOf(
|
|
iosX64(),
|
|
iosArm64(),
|
|
iosSimulatorArm64()
|
|
).forEach {
|
|
it.binaries.framework {
|
|
baseName = "shared"
|
|
isStatic = true
|
|
}
|
|
}
|
|
|
|
sourceSets {
|
|
commonMain.dependencies {
|
|
implementation("org.jetbrains.kotlinx:kotlinx-datetime:${versions["kotlinx-datetime"]}")
|
|
}
|
|
commonTest.dependencies {
|
|
implementation(libs.kotlin.test)
|
|
implementation("com.willowtreeapps.assertk:assertk:${versions["assertk"]}")
|
|
}
|
|
}
|
|
}
|
|
|
|
android {
|
|
namespace = "org.tle.astrologylibrary"
|
|
compileSdk = 35
|
|
defaultConfig {
|
|
minSdk = 24
|
|
}
|
|
compileOptions {
|
|
sourceCompatibility = JavaVersion.VERSION_1_8
|
|
targetCompatibility = JavaVersion.VERSION_1_8
|
|
}
|
|
}
|
|
|
|
allOpen {
|
|
annotation("org.tle.astrologylibrary.OpenForMokkery")
|
|
// annotations("com.another.Annotation", "com.third.Annotation")
|
|
} |