48 lines
1.3 KiB
Kotlin
48 lines
1.3 KiB
Kotlin
import org.jetbrains.compose.desktop.application.dsl.TargetFormat
|
|
|
|
plugins {
|
|
kotlin("jvm") version "2.1.0"
|
|
id("org.jetbrains.compose") version "1.7.1"
|
|
id("org.jetbrains.kotlin.plugin.compose") version "2.1.0"
|
|
kotlin("plugin.serialization") version "2.1.0"
|
|
}
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
google()
|
|
maven("https://maven.pkg.jetbrains.space/public/p/compose/dev")
|
|
}
|
|
|
|
dependencies {
|
|
implementation(compose.desktop.currentOs)
|
|
|
|
// Global hotkeys
|
|
implementation("com.github.kwhat:jnativehook:2.2.2")
|
|
|
|
// AnyType API (HTTP)
|
|
val ktorVersion = "3.0.0"
|
|
implementation("io.ktor:ktor-client-core:$ktorVersion")
|
|
implementation("io.ktor:ktor-client-cio:$ktorVersion")
|
|
implementation("io.ktor:ktor-client-content-negotiation:$ktorVersion")
|
|
implementation("io.ktor:ktor-serialization-kotlinx-json:$ktorVersion")
|
|
|
|
// Coroutines (Swing/AWT dispatcher)
|
|
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-swing:1.9.0")
|
|
}
|
|
|
|
compose.desktop {
|
|
application {
|
|
mainClass = "ch.ergon.anytask.MainKt"
|
|
|
|
nativeDistributions {
|
|
targetFormats(TargetFormat.Dmg)
|
|
packageName = "AnyTask"
|
|
packageVersion = "1.0.0"
|
|
|
|
macOS {
|
|
bundleID = "ch.ergon.anytask"
|
|
}
|
|
}
|
|
}
|
|
}
|