mirror of
https://github.com/openMF/mobile-wallet.git
synced 2026-02-06 09:37:24 +00:00
63 lines
1.7 KiB
Plaintext
63 lines
1.7 KiB
Plaintext
import org.jetbrains.kotlin.gradle.ExperimentalWasmDsl
|
|
|
|
plugins {
|
|
alias(libs.plugins.kotlinMultiplatform)
|
|
alias(libs.plugins.jetbrainsCompose)
|
|
alias(libs.plugins.compose.compiler)
|
|
}
|
|
|
|
kotlin {
|
|
js(IR) {
|
|
outputModuleName = "mifospay-web"
|
|
browser {
|
|
commonWebpackConfig {
|
|
outputFileName = "mifospay-web.js"
|
|
}
|
|
}
|
|
binaries.executable()
|
|
}
|
|
|
|
@OptIn(ExperimentalWasmDsl::class)
|
|
wasmJs {
|
|
outputModuleName = "mifospay-wasm"
|
|
browser {
|
|
commonWebpackConfig {
|
|
outputFileName = "mifospay-wasm.js"
|
|
}
|
|
}
|
|
binaries.executable()
|
|
}
|
|
|
|
applyDefaultHierarchyTemplate()
|
|
|
|
sourceSets {
|
|
val jsWasmMain by creating {
|
|
dependsOn(commonMain.get())
|
|
dependencies {
|
|
implementation(projects.mifospayShared)
|
|
implementation(projects.core.common)
|
|
implementation(projects.core.data)
|
|
implementation(projects.core.model)
|
|
implementation(projects.core.datastore)
|
|
|
|
implementation(compose.runtime)
|
|
implementation(compose.ui)
|
|
implementation(compose.foundation)
|
|
implementation(compose.material3)
|
|
implementation(compose.components.resources)
|
|
|
|
implementation(libs.multiplatform.settings)
|
|
implementation(libs.multiplatform.settings.serialization)
|
|
implementation(libs.multiplatform.settings.coroutines)
|
|
}
|
|
}
|
|
|
|
jsMain.get().dependsOn(jsWasmMain)
|
|
wasmJsMain.get().dependsOn(jsWasmMain)
|
|
}
|
|
}
|
|
|
|
compose.resources {
|
|
publicResClass = true
|
|
generateResClass = always
|
|
} |