@@ -8,6 +8,7 @@ plugins {
88 kotlin(" plugin.compose" )
99 kotlin(" plugin.serialization" )
1010 kotlin(" plugin.power-assert" )
11+ // kotlin("plugin.parcelize")
1112 id(" dev.reformator.stacktracedecoroutinator" )
1213 id(" org.bytedeco.gradle-javacpp-platform" ) version " 1.5.10"
1314}
@@ -17,7 +18,6 @@ repositories {
1718 maven(" https://maven.pkg.jetbrains.space/public/p/compose/dev" )
1819 google()
1920}
20-
2121kotlin {
2222 jvm(" desktop" )
2323 sourceSets {
@@ -27,6 +27,16 @@ kotlin {
2727 implementation(compose.runtime)
2828 implementation(compose.foundation)
2929 implementation(compose.material)
30+ implementation(compose.material3)
31+ // // implementation(compose.material3AdaptiveNavigationSuite)
32+ implementation(compose.materialIconsExtended)
33+ // implementation(compose.material3AdaptiveNavigationSuite)
34+
35+ implementation(" org.jetbrains.compose.material3.adaptive:adaptive-layout-desktop:_" )
36+ // implementation("androidx.compose.material3:material3-adaptive-navigation-suite-desktop:_") {
37+ // // exclude("", "")
38+ // }
39+ // implementation(compose.runtimeSaveable)
3040 implementation(compose.ui)
3141 implementation(compose.components.resources)
3242 implementation(compose.components.uiToolingPreview)
@@ -86,6 +96,8 @@ kotlin {
8696
8797stacktraceDecoroutinator {
8898 enabled = false
99+ addAndroidRuntimeDependency = false
100+ addJvmRuntimeDependency = false
89101}
90102
91103tasks.withType< org.jetbrains.kotlin.gradle.tasks.KotlinCompile > () {
@@ -119,6 +131,14 @@ powerAssert {
119131
120132compose.desktop {
121133 application {
134+ buildTypes.release {
135+ proguard {
136+ isEnabled = false
137+ version = " 7.4.0" // may break with compose-navigation
138+ // optimize = false
139+ // obfuscate = false
140+ }
141+ }
122142 mainClass = " Main"
123143
124144 mainJar.set(
@@ -159,7 +179,11 @@ project.afterEvaluate {
159179 jvmArgs(" --add-opens" , " java.base/java.lang=ALL-UNNAMED" )
160180 }
161181 val createDistributable by getting(AbstractJPackageTask ::class ) {
162- destinationDir.set(project.file(" bin" ))
182+ destinationDir.set(project.file(" bin/debug" ))
183+ // appImageRootDir.
184+ }
185+ val createReleaseDistributable by getting(AbstractJPackageTask ::class ) {
186+ destinationDir.set(project.file(" bin/release" ))
163187// appImageRootDir.
164188 }
165189 val runDistributable by getting(AbstractRunDistributableTask ::class ) {
@@ -185,7 +209,7 @@ project.afterEvaluate {
185209 }
186210 val packageDistributable by creating(Zip ::class ) {
187211 group = " package"
188- from(getByName( " createDistributable " ) )
212+ from(createReleaseDistributable )
189213 from(project.file(" README.md" ))
190214 archiveBaseName.set(" nestctrl" )
191215 destinationDirectory.set(project.file(" build" ))
@@ -209,7 +233,7 @@ project.afterEvaluate {
209233 doFirst {
210234 File (System .getProperty(" user.home" )).resolve(" VJ" ).resolve(" nestctrl" ).deleteRecursively()
211235 }
212- from(getByName( " createDistributable " ) )
236+ from(createReleaseDistributable )
213237 from(project.file(" README.md" ))
214238 this .destinationDir = File (System .getProperty(" user.home" )).resolve(" VJ" )
215239// doLast {
0 commit comments