@@ -16,7 +16,7 @@ plugins {
1616
1717// val appVersionCode = 1
1818val appVersion = (project.properties[" tag" ] as ? String )?.substringAfter(" v" )
19- ? : " 0.0.1 "
19+ ? : " 0.1.0 "
2020logger.lifecycle(" appVersion: $appVersion " )
2121
2222repositories {
@@ -38,7 +38,7 @@ kotlin {
3838 implementation(compose.materialIconsExtended)
3939// implementation(compose.material3AdaptiveNavigationSuite)
4040
41- implementation(" org.jetbrains.compose.material3.adaptive:adaptive-layout-desktop:_" )
41+ // implementation("org.jetbrains.compose.material3.adaptive:adaptive-layout-desktop:_")
4242// implementation("androidx.compose.material3:material3-adaptive-navigation-suite-desktop:_") {
4343// // exclude("", "")
4444// }
@@ -47,6 +47,11 @@ kotlin {
4747 implementation(compose.components.resources)
4848 implementation(compose.components.uiToolingPreview)
4949 }
50+ commonMain {
51+ kotlin.srcDirs(
52+ layout.buildDirectory.dir(" generated/main" )
53+ )
54+ }
5055
5156 desktopMain.dependencies {
5257 implementation(compose.desktop.currentOs)
@@ -106,6 +111,17 @@ kotlin {
106111 }
107112}
108113
114+ afterEvaluate {
115+ val constFile = layout.buildDirectory.file(" generated/main/Constants.kt" ).get().asFile
116+ constFile.parentFile!! .mkdirs()
117+ constFile.writeText("""
118+ object Constants {
119+ val APP_VERSION: String = "$appVersion "
120+ val isRelease: Boolean = ${project.properties.contains(" tag" )}
121+ }
122+ """ .trimIndent())
123+ }
124+
109125stacktraceDecoroutinator {
110126 enabled = false
111127 addAndroidRuntimeDependency = false
0 commit comments