mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI-examples.git
synced 2024-11-22 08:13:53 +00:00
small fixes in ResenderBot Lib
This commit is contained in:
parent
65c32d97d5
commit
44e86c9349
@ -22,6 +22,7 @@ kotlin {
|
|||||||
}
|
}
|
||||||
linuxX64()
|
linuxX64()
|
||||||
mingwX64()
|
mingwX64()
|
||||||
|
linuxArm64()
|
||||||
|
|
||||||
sourceSets {
|
sourceSets {
|
||||||
commonMain {
|
commonMain {
|
||||||
|
@ -1,34 +1,38 @@
|
|||||||
kotlin {
|
kotlin {
|
||||||
def hostOs = System.getProperty("os.name")
|
// def hostOs = System.getProperty("os.name")
|
||||||
def isMingwX64 = hostOs.startsWith("Windows")
|
// def isMingwX64 = hostOs.startsWith("Windows")
|
||||||
def isArch64 = System.getProperty("os.arch") == "aarch64"
|
// def isArch64 = System.getProperty("os.arch") == "aarch64"
|
||||||
|
//
|
||||||
|
// def nativeTarget
|
||||||
|
// if (hostOs == "Linux") {
|
||||||
|
// if (isArch64) {
|
||||||
|
// nativeTarget = linuxArm64("native") { binaries { executable() } }
|
||||||
|
// } else {
|
||||||
|
// nativeTarget = linuxX64("native") { binaries { executable() } }
|
||||||
|
// }
|
||||||
|
// } else {
|
||||||
|
// if (isMingwX64) {
|
||||||
|
// nativeTarget = mingwX64("native") { binaries { executable() } }
|
||||||
|
// } else {
|
||||||
|
// throw new GradleException("Host OS is not supported in Kotlin/Native.")
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
|
||||||
def nativeTarget
|
// sourceSets {
|
||||||
if (hostOs == "Linux") {
|
// nativeMain {
|
||||||
if (isArch64) {
|
// dependencies {
|
||||||
nativeTarget = linuxArm64("native") { binaries { executable() } }
|
// def engine
|
||||||
} else {
|
//
|
||||||
nativeTarget = linuxX64("native") { binaries { executable() } }
|
// if (hostOs == "Linux") if (isArch64) engine = "cio" else engine = "curl"
|
||||||
}
|
// else if (isMingwX64) engine = "winhttp"
|
||||||
} else {
|
// else throw new GradleException("Host OS is not supported in Kotlin/Native.")
|
||||||
if (isMingwX64) {
|
//
|
||||||
nativeTarget = mingwX64("native") { binaries { executable() } }
|
// api "io.ktor:ktor-client-$engine:$ktor_version"
|
||||||
} else {
|
// }
|
||||||
throw new GradleException("Host OS is not supported in Kotlin/Native.")
|
// }
|
||||||
}
|
// }
|
||||||
}
|
|
||||||
|
|
||||||
sourceSets {
|
linuxX64() { binaries { executable() } }
|
||||||
nativeMain {
|
mingwX64() { binaries { executable() } }
|
||||||
dependencies {
|
linuxArm64() { binaries { executable() } }
|
||||||
def engine
|
|
||||||
|
|
||||||
if (hostOs == "Linux") if (isArch64) engine = "cio" else engine = "curl"
|
|
||||||
else if (isMingwX64) engine = "winhttp"
|
|
||||||
else throw new GradleException("Host OS is not supported in Kotlin/Native.")
|
|
||||||
|
|
||||||
api "io.ktor:ktor-client-$engine:$ktor_version"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user