Browse Source

Proper deps

app-api
Nikolay Igotti 3 years ago
parent
commit
10b2b8ea58
  1. 9
      components/Kapp/demo/build.gradle.kts
  2. 2
      components/Kapp/demo/src/jsMain/resources/index.html

9
components/Kapp/demo/build.gradle.kts

@ -43,14 +43,19 @@ kotlin {
}
sourceSets {
val desktopMain by getting
val commonMain by getting {
dependencies {
implementation(project(":Kapp:library"))
}
}
val desktopMain by getting {
dependsOn(commonMain)
dependencies {
implementation(compose.desktop.currentOs)
}
}
val jsMain by getting
if (withNative) {

2
components/Kapp/demo/src/jsMain/resources/index.html

@ -7,7 +7,7 @@
<link type="text/css" rel="stylesheet" href="styles.css" />
</head>
<body>
<h1>compose multiplatform web demo</h1>
<h1>Web KApp Demo</h1>
<div>
<canvas id="ComposeTarget" width="800" height="600"></canvas>
</div>

Loading…
Cancel
Save