64 lines
2.3 KiB
Plaintext
64 lines
2.3 KiB
Plaintext
import org.jetbrains.kotlin.gradle.ExperimentalWasmDsl
|
|
import org.jetbrains.kotlin.gradle.targets.js.webpack.KotlinWebpackConfig
|
|
|
|
plugins {
|
|
alias(libs.plugins.kotlinMultiplatform)
|
|
alias(libs.plugins.composeMultiplatform)
|
|
alias(libs.plugins.composeCompiler)
|
|
}
|
|
|
|
kotlin {
|
|
@OptIn(ExperimentalWasmDsl::class)
|
|
wasmJs {
|
|
moduleName = "composeApp"
|
|
browser {
|
|
val rootDirPath = project.rootDir.path
|
|
val projectDirPath = project.projectDir.path
|
|
commonWebpackConfig {
|
|
outputFileName = "composeApp.js"
|
|
devServer = (devServer ?: KotlinWebpackConfig.DevServer()).apply {
|
|
static = (static ?: mutableListOf()).apply {
|
|
// Serve sources to debug inside browser
|
|
add(rootDirPath)
|
|
add(projectDirPath)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
binaries.executable()
|
|
}
|
|
|
|
sourceSets {
|
|
|
|
commonMain.dependencies {
|
|
implementation(compose.runtime)
|
|
implementation(compose.foundation)
|
|
implementation(compose.material)
|
|
implementation(compose.ui)
|
|
implementation(compose.components.resources)
|
|
implementation(compose.components.uiToolingPreview)
|
|
implementation(libs.androidx.lifecycle.viewmodel)
|
|
implementation(libs.androidx.lifecycle.runtime.compose)
|
|
|
|
// ConstrainLayout
|
|
implementation("tech.annexflow.compose:constraintlayout-compose-multiplatform:0.4.0")
|
|
|
|
// Material Design
|
|
implementation(compose.materialIconsExtended)
|
|
|
|
//Coroutines
|
|
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.9.0")
|
|
|
|
// Voyager
|
|
val voyagerVersion = "1.1.0-beta02"
|
|
implementation("cafe.adriel.voyager:voyager-navigator:$voyagerVersion")
|
|
implementation("cafe.adriel.voyager:voyager-screenmodel:$voyagerVersion")
|
|
implementation("cafe.adriel.voyager:voyager-bottom-sheet-navigator:$voyagerVersion")
|
|
implementation("cafe.adriel.voyager:voyager-tab-navigator:$voyagerVersion")
|
|
implementation("cafe.adriel.voyager:voyager-transitions:$voyagerVersion")
|
|
}
|
|
}
|
|
}
|
|
|
|
|