2026-08-19 17:19:47 +03:00
|
|
|
import org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi
|
|
|
|
|
|
|
|
|
|
plugins {
|
|
|
|
|
alias(libs.plugins.kotlin.multiplatform)
|
|
|
|
|
alias(libs.plugins.kotlin.serialization)
|
|
|
|
|
alias(libs.plugins.compose.multiplatform)
|
|
|
|
|
alias(libs.plugins.compose.compiler)
|
2026-08-19 18:45:09 +03:00
|
|
|
alias(libs.plugins.android.application)
|
2026-08-19 17:19:47 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
kotlin {
|
|
|
|
|
androidTarget {
|
|
|
|
|
@OptIn(ExperimentalKotlinGradlePluginApi::class)
|
|
|
|
|
compilerOptions {
|
|
|
|
|
jvmTarget.set(org.jetbrains.kotlin.gradle.dsl.JvmTarget.JVM_17)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
jvm("desktop") {
|
|
|
|
|
@OptIn(ExperimentalKotlinGradlePluginApi::class)
|
|
|
|
|
compilerOptions {
|
|
|
|
|
jvmTarget.set(org.jetbrains.kotlin.gradle.dsl.JvmTarget.JVM_17)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
sourceSets {
|
|
|
|
|
val commonMain by getting {
|
|
|
|
|
dependencies {
|
|
|
|
|
implementation(compose.runtime)
|
|
|
|
|
implementation(compose.foundation)
|
|
|
|
|
implementation(compose.material3)
|
|
|
|
|
implementation(compose.materialIconsExtended)
|
|
|
|
|
implementation(compose.ui)
|
|
|
|
|
implementation(libs.kotlinx.coroutines.core)
|
|
|
|
|
implementation(libs.kotlinx.serialization.json)
|
|
|
|
|
implementation(libs.ktor.client.core)
|
|
|
|
|
implementation(libs.ktor.network)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
val commonTest by getting {
|
|
|
|
|
dependencies {
|
|
|
|
|
implementation(libs.kotlin.test)
|
|
|
|
|
implementation(libs.kotlinx.serialization.json)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
val androidMain by getting {
|
|
|
|
|
dependencies {
|
|
|
|
|
implementation(libs.kotlinx.coroutines.core)
|
|
|
|
|
implementation(libs.kotlinx.serialization.json)
|
|
|
|
|
implementation(libs.androidx.activity.compose)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
val desktopMain by getting {
|
|
|
|
|
dependencies {
|
|
|
|
|
implementation(compose.desktop.common)
|
|
|
|
|
implementation(compose.desktop.currentOs)
|
|
|
|
|
implementation(libs.kotlinx.coroutines.core)
|
|
|
|
|
implementation(libs.kotlinx.serialization.json)
|
|
|
|
|
implementation(libs.junit)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
android {
|
|
|
|
|
namespace = "com.aerotoss"
|
|
|
|
|
compileSdk = 35
|
|
|
|
|
|
|
|
|
|
defaultConfig {
|
2026-08-19 18:45:09 +03:00
|
|
|
applicationId = "com.aerotoss"
|
2026-08-19 17:19:47 +03:00
|
|
|
minSdk = 24
|
2026-08-19 18:45:09 +03:00
|
|
|
targetSdk = 35
|
|
|
|
|
versionCode = 1
|
|
|
|
|
versionName = "1.0.0"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
buildTypes {
|
|
|
|
|
debug {
|
2026-08-19 19:13:31 +03:00
|
|
|
isDebuggable = true
|
2026-08-19 18:45:09 +03:00
|
|
|
}
|
|
|
|
|
release {
|
|
|
|
|
isMinifyEnabled = false
|
|
|
|
|
}
|
2026-08-19 17:19:47 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
compileOptions {
|
|
|
|
|
sourceCompatibility = JavaVersion.VERSION_17
|
|
|
|
|
targetCompatibility = JavaVersion.VERSION_17
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
lint {
|
|
|
|
|
abortOnError = false
|
|
|
|
|
checkReleaseBuilds = false
|
|
|
|
|
checkDependencies = false
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
compose.desktop {
|
|
|
|
|
application {
|
|
|
|
|
mainClass = "com.aerotoss.MainKt"
|
2026-08-19 18:45:09 +03:00
|
|
|
|
|
|
|
|
nativeDistributions {
|
|
|
|
|
targetFormats(org.jetbrains.compose.desktop.application.dsl.TargetFormat.Dmg)
|
|
|
|
|
packageName = "AeroToss"
|
|
|
|
|
packageVersion = "1.0.0"
|
|
|
|
|
description = "Кроссплатформенное приложение для передачи файлов"
|
|
|
|
|
vendor = "AeroToss"
|
|
|
|
|
licenseFile = file("../LICENSE")
|
|
|
|
|
}
|
2026-08-19 17:19:47 +03:00
|
|
|
}
|
|
|
|
|
}
|