You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
76 lines
2.0 KiB
76 lines
2.0 KiB
4 years ago
|
import org.jetbrains.compose.compose
|
||
4 years ago
|
import org.jetbrains.compose.desktop.application.dsl.TargetFormat
|
||
|
|
||
|
plugins {
|
||
3 years ago
|
kotlin("multiplatform") version "1.5.21"
|
||
3 years ago
|
id("org.jetbrains.compose") version "1.0.0-alpha1-rc5"
|
||
4 years ago
|
}
|
||
|
|
||
|
version = "1.0-SNAPSHOT"
|
||
|
|
||
|
repositories {
|
||
|
mavenCentral()
|
||
|
maven("https://maven.pkg.jetbrains.space/public/p/compose/dev")
|
||
3 years ago
|
google()
|
||
4 years ago
|
}
|
||
|
|
||
|
kotlin {
|
||
|
jvm()
|
||
|
js(IR) {
|
||
|
browser()
|
||
|
binaries.executable()
|
||
|
}
|
||
|
|
||
|
sourceSets {
|
||
|
val commonMain by getting {
|
||
|
dependencies {
|
||
|
implementation(kotlin("stdlib-common"))
|
||
4 years ago
|
implementation(compose.web.widgets)
|
||
4 years ago
|
implementation(compose.runtime)
|
||
|
}
|
||
|
}
|
||
|
|
||
|
val jvmMain by getting {
|
||
|
dependencies {
|
||
|
implementation(compose.desktop.currentOs)
|
||
|
}
|
||
|
}
|
||
|
|
||
|
|
||
|
val commonTest by getting {
|
||
|
dependencies {
|
||
|
implementation(kotlin("test-common"))
|
||
|
implementation(kotlin("test-annotations-common"))
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
compose.desktop {
|
||
|
application {
|
||
|
mainClass = "org.jetbrains.compose.common.demo.AppKt"
|
||
|
|
||
|
nativeDistributions {
|
||
|
targetFormats(TargetFormat.Dmg, TargetFormat.Msi, TargetFormat.Deb)
|
||
|
packageName = "ImageViewer"
|
||
|
packageVersion = "1.0.0"
|
||
4 years ago
|
|
||
4 years ago
|
modules("jdk.crypto.ec")
|
||
|
|
||
|
val iconsRoot = project.file("../common/src/desktopMain/resources/images")
|
||
|
macOS {
|
||
|
iconFile.set(iconsRoot.resolve("icon-mac.icns"))
|
||
|
}
|
||
|
windows {
|
||
|
iconFile.set(iconsRoot.resolve("icon-windows.ico"))
|
||
|
menuGroup = "Compose Examples"
|
||
|
// see https://wixtoolset.org/documentation/manual/v3/howtos/general/generate_guids.html
|
||
|
upgradeUuid = "18159995-d967-4CD2-8885-77BFA97CFA9F"
|
||
|
}
|
||
|
linux {
|
||
|
iconFile.set(iconsRoot.resolve("icon-linux.png"))
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|