2022-06-07 13:17:21 +04:00
|
|
|
buildscript {
|
|
|
|
repositories {
|
|
|
|
google()
|
|
|
|
mavenCentral()
|
|
|
|
mavenLocal()
|
2023-09-22 01:46:05 +06:00
|
|
|
maven { url "https://plugins.gradle.org/m2/" }
|
2022-06-07 13:17:21 +04:00
|
|
|
}
|
2023-09-22 01:46:05 +06:00
|
|
|
|
2022-06-07 13:17:21 +04:00
|
|
|
dependencies {
|
2023-09-22 01:46:05 +06:00
|
|
|
classpath libs.android.tools.build
|
|
|
|
classpath libs.android.dexcount
|
|
|
|
classpath libs.kotlin.gradle.plugin
|
|
|
|
classpath libs.kotlin.dokka.plugin
|
|
|
|
classpath libs.github.release
|
2022-06-07 13:17:21 +04:00
|
|
|
}
|
|
|
|
}
|
2023-09-22 01:46:05 +06:00
|
|
|
|
|
|
|
|
2022-06-07 20:02:59 +06:00
|
|
|
plugins {
|
|
|
|
alias(libs.plugins.kotlin.multiplatform)
|
|
|
|
alias(libs.plugins.kotlin.dokka)
|
2023-07-28 12:13:27 +06:00
|
|
|
alias(libs.plugins.versions)
|
2022-06-07 20:02:59 +06:00
|
|
|
}
|
|
|
|
|
2023-09-22 01:46:05 +06:00
|
|
|
apply plugin: "com.android.library"
|
2022-06-07 20:02:59 +06:00
|
|
|
|
|
|
|
project.version = "$version"
|
|
|
|
project.group = "$group"
|
|
|
|
|
|
|
|
repositories {
|
|
|
|
mavenLocal()
|
|
|
|
mavenCentral()
|
|
|
|
google()
|
|
|
|
}
|
|
|
|
|
|
|
|
kotlin {
|
2022-06-15 16:14:59 +06:00
|
|
|
jvm {
|
2023-09-22 01:46:05 +06:00
|
|
|
compilations.main {
|
2022-06-15 16:14:59 +06:00
|
|
|
kotlinOptions {
|
|
|
|
jvmTarget = "1.8"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2022-06-07 20:45:14 +06:00
|
|
|
js(IR) {
|
2022-06-07 20:02:59 +06:00
|
|
|
browser()
|
|
|
|
nodejs()
|
|
|
|
}
|
2023-09-20 22:25:56 +06:00
|
|
|
androidTarget {
|
2022-06-07 20:02:59 +06:00
|
|
|
publishAllLibraryVariants()
|
2023-09-20 21:39:01 +06:00
|
|
|
compilations.all {
|
|
|
|
kotlinOptions {
|
2023-11-02 18:06:55 +06:00
|
|
|
jvmTarget = "17"
|
2023-09-20 21:39:01 +06:00
|
|
|
}
|
|
|
|
}
|
2022-06-07 20:02:59 +06:00
|
|
|
}
|
2022-09-12 15:44:59 +06:00
|
|
|
linuxArm64()
|
|
|
|
linuxArm32Hfp()
|
|
|
|
linuxX64()
|
2023-04-13 10:52:05 +06:00
|
|
|
wasm {
|
|
|
|
browser()
|
|
|
|
nodejs()
|
|
|
|
d8()
|
|
|
|
}
|
2022-09-12 15:44:59 +06:00
|
|
|
mingwX64()
|
2022-06-07 20:02:59 +06:00
|
|
|
|
|
|
|
sourceSets {
|
|
|
|
commonMain {
|
|
|
|
dependencies {
|
2023-09-22 01:46:05 +06:00
|
|
|
implementation libs.kotlin
|
2022-06-07 20:02:59 +06:00
|
|
|
}
|
|
|
|
}
|
2023-04-13 10:52:05 +06:00
|
|
|
commonTest {
|
|
|
|
dependencies {
|
2023-09-22 01:46:05 +06:00
|
|
|
implementation libs.kotlin.test.common
|
|
|
|
implementation libs.kotlin.test.annotations.common
|
2024-08-09 22:34:05 +06:00
|
|
|
}
|
|
|
|
}
|
|
|
|
jvmTest {
|
|
|
|
dependencies {
|
2023-09-22 01:46:05 +06:00
|
|
|
implementation libs.kotlin.test.junit
|
2023-04-13 10:52:05 +06:00
|
|
|
}
|
|
|
|
}
|
2022-06-07 13:17:21 +04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-06-07 20:02:59 +06:00
|
|
|
java {
|
2022-06-15 16:14:59 +06:00
|
|
|
sourceCompatibility = JavaVersion.VERSION_1_8
|
|
|
|
targetCompatibility = JavaVersion.VERSION_1_8
|
2022-06-07 20:02:59 +06:00
|
|
|
}
|
|
|
|
|
2023-09-22 01:46:05 +06:00
|
|
|
apply from: "defaultAndroidSettings.gradle"
|
|
|
|
|
|
|
|
apply from: "github_release.gradle"
|
|
|
|
apply from: "publish.gradle"
|
|
|
|
apply from: "dokka.gradle"
|