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 { sourceSets {
val desktopMain by getting
val commonMain by getting { val commonMain by getting {
dependencies { dependencies {
implementation(project(":Kapp:library")) implementation(project(":Kapp:library"))
} }
} }
val desktopMain by getting {
dependsOn(commonMain)
dependencies {
implementation(compose.desktop.currentOs)
}
}
val jsMain by getting val jsMain by getting
if (withNative) { if (withNative) {

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

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

Loading…
Cancel
Save