sample/build.gradle.kts
changeset 47 246422783c0c
parent 44 7732a7112b93
child 66 4a652584013c
equal deleted inserted replaced
46:c40e90a1b0fa 47:246422783c0c
    43         compilerOptions {
    43         compilerOptions {
    44             jvmTarget.set(JvmTarget.JVM_17)
    44             jvmTarget.set(JvmTarget.JVM_17)
    45         }
    45         }
    46     }
    46     }
    47 
    47 
    48     jvm("desktop")
    48     jvm("desktop") {
       
    49         mainRun {
       
    50             mainClass = "com.geekorum.aboutoss.sampleapp.MainKt"
       
    51         }
       
    52     }
    49 
    53 
    50     listOf(
    54     listOf(
    51         iosX64(),
    55         iosX64(),
    52         iosArm64(),
    56         iosArm64(),
    53         iosSimulatorArm64(),
    57         iosSimulatorArm64(),
    65             implementation(project(":ui:material2"))
    69             implementation(project(":ui:material2"))
    66             implementation(project(":ui:material3"))
    70             implementation(project(":ui:material3"))
    67             implementation(compose.material3)
    71             implementation(compose.material3)
    68             implementation(compose.components.resources)
    72             implementation(compose.components.resources)
    69             implementation(compose.components.uiToolingPreview)
    73             implementation(compose.components.uiToolingPreview)
       
    74             implementation(libs.org.jetbrains.androidx.lifecycle.viewmodel.compose)
    70         }
    75         }
    71 
    76 
    72         androidMain.dependencies {
    77         androidMain.dependencies {
    73             api(libs.androidx.activity)
    78             api(libs.androidx.activity)
    74             implementation(dependencies.enforcedPlatform(libs.androidx.compose.bom))
    79             implementation(dependencies.enforcedPlatform(libs.androidx.compose.bom))
    75             implementation(libs.androidx.activity.compose)
    80             implementation(libs.androidx.activity.compose)
    76             implementation(libs.geekdroid)
    81             implementation(libs.geekdroid)
    77             implementation(libs.androidx.lifecycle.viewmodel.compose)
    82         }
       
    83 
       
    84         val desktopMain by getting {
       
    85             dependencies {
       
    86                 implementation(compose.desktop.currentOs)
       
    87                 implementation(libs.kotlinx.coroutines.swing)
       
    88             }
    78         }
    89         }
    79     }
    90     }
    80 }
    91 }
    81 
       
    82 
    92 
    83 android {
    93 android {
    84     namespace = "com.geekorum.aboutoss.sampleapp"
    94     namespace = "com.geekorum.aboutoss.sampleapp"
    85     compileSdk = 35
    95     compileSdk = 35
    86 
    96