2020-09-15 18:57:41 +06:00
|
|
|
project.version = "$version"
|
|
|
|
project.group = "$group"
|
|
|
|
|
2020-09-27 20:25:42 +06:00
|
|
|
apply from: "$publishGradlePath"
|
|
|
|
|
2020-09-15 18:57:41 +06:00
|
|
|
kotlin {
|
2021-11-09 14:03:51 +06:00
|
|
|
jvm {
|
|
|
|
compilations.main {
|
|
|
|
kotlinOptions {
|
|
|
|
jvmTarget = "1.8"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2021-07-31 14:05:52 +06:00
|
|
|
js (IR) {
|
2020-10-16 17:59:51 +06:00
|
|
|
browser()
|
2020-09-15 18:57:41 +06:00
|
|
|
nodejs()
|
|
|
|
}
|
2020-11-10 15:43:15 +06:00
|
|
|
android {
|
2020-11-11 16:06:44 +06:00
|
|
|
publishAllLibraryVariants()
|
2020-11-10 15:43:15 +06:00
|
|
|
}
|
2023-04-03 10:26:03 +06:00
|
|
|
linuxX64()
|
|
|
|
mingwX64()
|
2020-09-15 18:57:41 +06:00
|
|
|
|
|
|
|
sourceSets {
|
|
|
|
commonMain {
|
|
|
|
dependencies {
|
|
|
|
implementation kotlin('stdlib')
|
2022-12-05 21:19:38 +06:00
|
|
|
api libs.kt.serialization
|
2020-09-15 18:57:41 +06:00
|
|
|
}
|
|
|
|
}
|
|
|
|
commonTest {
|
|
|
|
dependencies {
|
|
|
|
implementation kotlin('test-common')
|
|
|
|
implementation kotlin('test-annotations-common')
|
|
|
|
}
|
|
|
|
}
|
|
|
|
jvmTest {
|
|
|
|
dependencies {
|
|
|
|
implementation kotlin('test-junit')
|
|
|
|
}
|
|
|
|
}
|
|
|
|
jsTest {
|
|
|
|
dependencies {
|
|
|
|
implementation kotlin('test-js')
|
|
|
|
implementation kotlin('test-junit')
|
|
|
|
}
|
|
|
|
}
|
2020-11-10 15:43:15 +06:00
|
|
|
androidTest {
|
|
|
|
dependencies {
|
|
|
|
implementation kotlin('test-junit')
|
2022-03-10 17:04:05 +06:00
|
|
|
implementation libs.android.test.junit
|
|
|
|
implementation libs.android.espresso
|
2020-11-10 15:43:15 +06:00
|
|
|
}
|
|
|
|
}
|
2023-04-03 10:26:03 +06:00
|
|
|
mingwX64Test {
|
|
|
|
dependencies {
|
2023-04-03 22:35:41 +06:00
|
|
|
implementation kotlin('test-junit')
|
|
|
|
}
|
|
|
|
}
|
|
|
|
linuxX64Test {
|
|
|
|
dependencies {
|
2023-04-03 10:26:03 +06:00
|
|
|
implementation kotlin('test-junit')
|
|
|
|
}
|
|
|
|
}
|
2023-02-28 19:08:39 +06:00
|
|
|
|
|
|
|
androidMain.dependsOn jvmMain
|
2020-09-15 18:57:41 +06:00
|
|
|
}
|
2020-10-12 22:54:05 +06:00
|
|
|
}
|
2020-11-10 15:43:15 +06:00
|
|
|
|
|
|
|
apply from: "$defaultAndroidSettingsPresetPath"
|
2021-09-19 20:50:24 +06:00
|
|
|
|
|
|
|
java {
|
2021-11-09 14:03:51 +06:00
|
|
|
sourceCompatibility = JavaVersion.VERSION_1_8
|
|
|
|
targetCompatibility = JavaVersion.VERSION_1_8
|
2021-09-19 20:50:24 +06:00
|
|
|
}
|