|
|
|
@file:Suppress("OPT_IN_IS_NOT_ENABLED")
|
|
|
|
|
|
|
|
plugins {
|
|
|
|
kotlin("multiplatform")
|
|
|
|
kotlin("plugin.compose")
|
|
|
|
id("com.android.library")
|
|
|
|
id("org.jetbrains.compose")
|
|
|
|
}
|
|
|
|
|
|
|
|
version = "1.0-SNAPSHOT"
|
|
|
|
|
|
|
|
kotlin {
|
|
|
|
androidTarget()
|
|
|
|
|
|
|
|
jvm("desktop")
|
|
|
|
|
|
|
|
listOf(
|
|
|
|
iosX64(),
|
|
|
|
iosArm64(),
|
|
|
|
iosSimulatorArm64()
|
|
|
|
).forEach { iosTarget ->
|
|
|
|
iosTarget.binaries {
|
|
|
|
framework {
|
|
|
|
baseName = "shared"
|
|
|
|
isStatic = true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
js(IR) {
|
|
|
|
browser()
|
|
|
|
}
|
|
|
|
|
|
|
|
macosX64 {
|
|
|
|
binaries {
|
|
|
|
executable {
|
|
|
|
entryPoint = "main"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
macosArm64 {
|
|
|
|
binaries {
|
|
|
|
executable {
|
|
|
|
entryPoint = "main"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
sourceSets {
|
|
|
|
all {
|
|
|
|
languageSettings {
|
|
|
|
optIn("org.jetbrains.compose.resources.ExperimentalResourceApi")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
val commonMain by getting {
|
|
|
|
dependencies {
|
|
|
|
implementation(compose.ui)
|
|
|
|
implementation(compose.foundation)
|
|
|
|
implementation(compose.material)
|
|
|
|
implementation(compose.components.resources)
|
|
|
|
implementation("org.jetbrains.kotlinx:kotlinx-datetime:0.5.0")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
val androidMain by getting {
|
|
|
|
dependencies {
|
|
|
|
api("androidx.activity:activity-compose:1.7.2")
|
|
|
|
api("androidx.appcompat:appcompat:1.6.1")
|
|
|
|
api("androidx.core:core-ktx:1.10.1")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
val iosMain by creating {
|
|
|
|
dependsOn(commonMain)
|
|
|
|
}
|
|
|
|
val iosX64Main by getting {
|
|
|
|
dependsOn(iosMain)
|
|
|
|
}
|
|
|
|
val iosArm64Main by getting {
|
|
|
|
dependsOn(iosMain)
|
|
|
|
}
|
|
|
|
val iosSimulatorArm64Main by getting {
|
|
|
|
dependsOn(iosMain)
|
|
|
|
}
|
|
|
|
val desktopMain by getting {
|
|
|
|
dependencies {
|
|
|
|
implementation(compose.desktop.common)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
val macosMain by creating {
|
|
|
|
dependsOn(commonMain)
|
|
|
|
}
|
|
|
|
val macosX64Main by getting {
|
|
|
|
dependsOn(macosMain)
|
|
|
|
}
|
|
|
|
val macosArm64Main by getting {
|
|
|
|
dependsOn(macosMain)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
android {
|
|
|
|
compileSdk = 35
|
|
|
|
namespace = "org.jetbrains.chat"
|
|
|
|
sourceSets["main"].manifest.srcFile("src/androidMain/AndroidManifest.xml")
|
|
|
|
|
|
|
|
defaultConfig {
|
|
|
|
minSdk = 26
|
|
|
|
}
|
|
|
|
compileOptions {
|
|
|
|
sourceCompatibility = JavaVersion.VERSION_17
|
|
|
|
targetCompatibility = JavaVersion.VERSION_17
|
|
|
|
}
|
|
|
|
kotlin {
|
|
|
|
jvmToolchain(17)
|
|
|
|
}
|
|
|
|
}
|