2020-08-20 05:55:39 +00:00
|
|
|
plugins {
|
|
|
|
id "org.jetbrains.kotlin.multiplatform"
|
|
|
|
id "org.jetbrains.kotlin.plugin.serialization"
|
2022-08-05 10:31:39 +00:00
|
|
|
id "com.google.devtools.ksp"
|
2023-03-04 15:18:50 +00:00
|
|
|
id "org.jetbrains.dokka"
|
2020-08-20 05:55:39 +00:00
|
|
|
}
|
|
|
|
|
2022-03-22 10:26:18 +00:00
|
|
|
project.description = "Core part of tgbotapi with all (and only) required functionality for working with Telegram Bot API"
|
2020-08-20 05:55:39 +00:00
|
|
|
|
2024-08-29 18:51:03 +00:00
|
|
|
apply from: "$mppProjectWithSerialization"
|
|
|
|
apply from: "$mpp_publish"
|
2020-08-20 05:55:39 +00:00
|
|
|
|
|
|
|
kotlin {
|
|
|
|
sourceSets {
|
|
|
|
commonMain {
|
|
|
|
dependencies {
|
2022-06-29 08:23:45 +00:00
|
|
|
api libs.kotlin.coroutines
|
|
|
|
api libs.kotlin.serialization
|
|
|
|
api libs.kotlin.serialization.properties
|
|
|
|
|
|
|
|
api libs.korlibs.klock
|
|
|
|
api libs.korlibs.krypto
|
|
|
|
api libs.uuid
|
|
|
|
|
2024-01-05 07:32:08 +00:00
|
|
|
api libs.microutils.colors.common
|
2022-06-29 08:23:45 +00:00
|
|
|
api libs.microutils.coroutines
|
|
|
|
api libs.microutils.serialization.base64
|
|
|
|
api libs.microutils.serialization.encapsulator
|
|
|
|
api libs.microutils.serialization.typedSerializer
|
2023-03-11 15:17:59 +00:00
|
|
|
api libs.microutils.serialization.mapper
|
2022-06-29 08:23:45 +00:00
|
|
|
api libs.microutils.ktor.common
|
|
|
|
api libs.microutils.languageCodes
|
|
|
|
|
|
|
|
api libs.ktor.client.core
|
2023-11-23 06:47:58 +00:00
|
|
|
|
|
|
|
api libs.kslog
|
2020-08-20 05:55:39 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
commonTest {
|
|
|
|
dependencies {
|
2022-04-18 08:30:38 +00:00
|
|
|
implementation project(":tgbotapi.utils")
|
2020-08-20 05:55:39 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
jvmMain {
|
|
|
|
dependencies {
|
2022-06-29 08:23:45 +00:00
|
|
|
api libs.ktor.server
|
|
|
|
api libs.ktor.server.host.common
|
2020-08-20 05:55:39 +00:00
|
|
|
|
2022-06-29 08:23:45 +00:00
|
|
|
api libs.ktor.client.cio
|
2020-08-20 05:55:39 +00:00
|
|
|
|
2022-06-29 08:23:45 +00:00
|
|
|
api libs.javax.activation
|
2020-08-20 05:55:39 +00:00
|
|
|
}
|
|
|
|
}
|
2023-04-17 21:13:41 +00:00
|
|
|
|
|
|
|
linuxX64Main {
|
|
|
|
dependencies {
|
|
|
|
api libs.ktor.client.curl
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-10-20 16:07:14 +00:00
|
|
|
linuxArm64Main {
|
|
|
|
dependencies {
|
|
|
|
api libs.ktor.client.cio
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-04-17 21:13:41 +00:00
|
|
|
mingwX64Main {
|
|
|
|
dependencies {
|
|
|
|
api libs.ktor.client.winhttp
|
|
|
|
}
|
|
|
|
}
|
2020-08-20 05:55:39 +00:00
|
|
|
}
|
2022-08-05 10:31:39 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2023-04-17 21:13:41 +00:00
|
|
|
add("kspCommonMainMetadata", project(":tgbotapi.ksp"))
|
2022-08-05 10:31:39 +00:00
|
|
|
}
|
2021-09-23 07:15:44 +00:00
|
|
|
|
2022-08-05 10:31:39 +00:00
|
|
|
ksp {
|
|
|
|
arg("cctargetPackage", "dev.inmo.tgbotapi.extensions.utils")
|
2022-08-05 11:31:45 +00:00
|
|
|
arg("ccoutputFileName", "ClassCastsNew")
|
2022-08-05 10:31:39 +00:00
|
|
|
arg("ccoutputFolder", project(":tgbotapi.utils").file("src/commonMain/kotlin").absolutePath)
|
2021-09-23 07:15:44 +00:00
|
|
|
}
|