KotlinMultiplatformProjectT.../mppAndroidProject.gradle

40 lines
954 B
Groovy
Raw Normal View History

2021-03-02 09:28:13 +00:00
project.version = "$version"
2020-12-02 15:50:52 +00:00
project.group = "$group"
// apply from: "$publishGradlePath"
kotlin {
2023-11-02 13:25:34 +00:00
androidTarget {
2020-12-02 15:50:52 +00:00
publishAllLibraryVariants()
2023-11-02 13:20:55 +00:00
compilations.all {
kotlinOptions {
jvmTarget = "17"
}
}
2020-12-02 15:50:52 +00:00
}
sourceSets {
commonMain {
dependencies {
2022-01-29 15:47:34 +00:00
implementation libs.kotlin
api libs.kotlin.serialization
2020-12-02 15:50:52 +00:00
}
}
commonTest {
dependencies {
2022-01-29 15:47:34 +00:00
implementation libs.kotlin.test.common
implementation libs.kotlin.test.annotations.common
}
}
2023-08-24 03:57:37 +00:00
androidUnitTest {
2022-01-29 15:47:34 +00:00
dependencies {
implementation libs.kotlin.test.junit
implementation libs.android.test.junit
implementation libs.android.test.espresso.core
2020-12-02 15:50:52 +00:00
}
}
}
}
apply from: "$defaultAndroidSettingsPresetPath"