AstrologyLibrary/shared/build.gradle.kts
emil 0b80e17e52 i-3: Add Mokkery as a mocking library (#6)
Co-authored-by: Emil Simeonov <emil@theliberatededge.org>
Reviewed-on: #6
2025-02-16 01:46:54 +00:00

57 lines
1.2 KiB
Plaintext

val versions = mapOf(
"kotlinx-datetime" to "0.6.2"
)
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)
}
}
}
android {
namespace = "com.tle.astrologylibrary"
compileSdk = 35
defaultConfig {
minSdk = 24
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
}
allOpen {
annotation("com.tle.astrologylibrary.OpenForMokkery")
// annotations("com.another.Annotation", "com.third.Annotation")
}