Files
KMPExercises/shared/build.gradle.kts

58 lines
1.2 KiB
Kotlin
Raw Normal View History

2024-02-14 15:55:36 -03:00
plugins {
alias(libs.plugins.kotlinMultiplatform)
alias(libs.plugins.androidLibrary)
}
kotlin {
2024-02-16 09:49:23 -03:00
kotlin.applyDefaultHierarchyTemplate()
androidTarget()
2024-02-14 15:55:36 -03:00
androidTarget {
compilations.all {
kotlinOptions {
jvmTarget = "1.8"
}
}
}
listOf(
iosX64(),
iosArm64(),
iosSimulatorArm64()
).forEach {
it.binaries.framework {
baseName = "shared"
isStatic = true
}
}
sourceSets {
2024-02-16 09:49:23 -03:00
val commonMain by getting {
//Fix for: https://stackoverflow.com/a/69626787
all {
languageSettings.optIn("io.ktor.util.InternalAPI")
}
dependencies {
}
kotlin.srcDir(layout.buildDirectory.dir("/generate-resources/main/src/"))
2024-02-14 15:55:36 -03:00
}
2024-02-16 09:49:23 -03:00
val commonTest by getting {
dependencies {
implementation(libs.kotlin.test)
}
2024-02-14 15:55:36 -03:00
}
2024-02-16 09:49:23 -03:00
logger.info("${commonMain.name} ${commonTest.name}")
2024-02-14 15:55:36 -03:00
}
}
android {
namespace = "cl.carlost.kmpexcercises"
compileSdk = 34
defaultConfig {
minSdk = 24
}
}