2022-06-07 13:17:21 +04:00
|
|
|
buildscript {
|
|
|
|
repositories {
|
|
|
|
google()
|
|
|
|
mavenCentral()
|
|
|
|
mavenLocal()
|
|
|
|
maven { url "https://plugins.gradle.org/m2/" }
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
classpath libs.android.tools.build
|
|
|
|
classpath libs.android.dexcount
|
|
|
|
classpath libs.kotlin.gradle.plugin
|
|
|
|
classpath libs.kotlin.dokka.plugin
|
2022-06-07 22:22:28 +06:00
|
|
|
classpath libs.github.release
|
2022-06-07 13:17:21 +04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-06-07 20:02:59 +06:00
|
|
|
|
|
|
|
plugins {
|
|
|
|
alias(libs.plugins.kotlin.multiplatform)
|
|
|
|
alias(libs.plugins.kotlin.dokka)
|
|
|
|
}
|
|
|
|
|
|
|
|
apply plugin: "com.android.library"
|
|
|
|
|
|
|
|
project.version = "$version"
|
|
|
|
project.group = "$group"
|
|
|
|
|
|
|
|
repositories {
|
|
|
|
mavenLocal()
|
|
|
|
mavenCentral()
|
|
|
|
google()
|
|
|
|
}
|
|
|
|
|
|
|
|
kotlin {
|
2022-06-15 16:14:59 +06:00
|
|
|
jvm {
|
|
|
|
compilations.main {
|
|
|
|
kotlinOptions {
|
|
|
|
jvmTarget = "1.8"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2022-06-07 20:45:14 +06:00
|
|
|
js(IR) {
|
2022-06-07 20:02:59 +06:00
|
|
|
browser()
|
|
|
|
nodejs()
|
|
|
|
}
|
|
|
|
android {
|
|
|
|
publishAllLibraryVariants()
|
|
|
|
}
|
|
|
|
|
|
|
|
sourceSets {
|
|
|
|
commonMain {
|
|
|
|
dependencies {
|
|
|
|
implementation libs.kotlin
|
|
|
|
}
|
|
|
|
}
|
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
|
|
|
}
|
|
|
|
|
|
|
|
apply from: "defaultAndroidSettings.gradle"
|
|
|
|
|
2022-06-07 23:12:55 +06:00
|
|
|
apply from: "github_release.gradle"
|
|
|
|
apply from: "publish.gradle"
|
|
|
|
apply from: "dokka.gradle"
|