File tree Expand file tree Collapse file tree 7 files changed +20
-52
lines changed Expand file tree Collapse file tree 7 files changed +20
-52
lines changed Original file line number Diff line number Diff line change @@ -7,8 +7,8 @@ plugins {
7
7
alias(libs.plugins.compose.multiplatform)
8
8
alias(libs.plugins.compose.compiler)
9
9
alias(libs.plugins.android.library)
10
- alias(libs.plugins.dokka)
11
10
alias(libs.plugins.maven.publish)
11
+ alias(libs.plugins.dokka)
12
12
}
13
13
14
14
group = " ir.mahozad.multiplatform"
@@ -17,27 +17,12 @@ version = "2.1.0-rc"
17
17
kotlin {
18
18
androidTarget { publishLibraryVariants(" release" ) }
19
19
jvm(name = " desktop" ) // Windows, Linux, macOS (with Java runtime)
20
- js(compiler = IR ) { // Kotlin/JS drawing to a canvas
21
- nodejs()
22
- browser()
23
- binaries.executable()
24
- }
20
+ js(IR ) { browser() } // Kotlin/JS drawing to a canvas
25
21
@OptIn(ExperimentalWasmDsl ::class )
26
- wasmJs { // Kotlin/Wasm drawing to a canvas
27
- nodejs()
28
- browser()
29
- binaries.executable()
30
- }
31
- listOf (
32
- iosX64(),
33
- iosArm64(),
34
- iosSimulatorArm64()
35
- ).forEach { iosTarget ->
36
- iosTarget.binaries.framework {
37
- baseName = " library"
38
- isStatic = true
39
- }
40
- }
22
+ wasmJs { browser() } // Kotlin/Wasm drawing to a canvas
23
+ iosX64()
24
+ iosArm64()
25
+ iosSimulatorArm64()
41
26
42
27
sourceSets {
43
28
commonMain.dependencies {
Original file line number Diff line number Diff line change @@ -7,11 +7,14 @@ plugins {
7
7
}
8
8
9
9
kotlin {
10
- jvm()
10
+ jvm(name = " desktop " )
11
11
sourceSets {
12
- jvmMain.dependencies {
13
- implementation(compose.desktop.currentOs)
14
- implementation(projects.showcase.shared)
12
+ @Suppress(" unused" )
13
+ val desktopMain by getting {
14
+ dependencies {
15
+ implementation(compose.desktop.currentOs)
16
+ implementation(projects.showcase.shared)
17
+ }
15
18
}
16
19
}
17
20
}
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change @@ -5,11 +5,7 @@ plugins {
5
5
}
6
6
7
7
kotlin {
8
- js(compiler = IR ) {
9
- browser()
10
- nodejs()
11
- binaries.executable()
12
- }
8
+ js(IR ) { browser() }
13
9
sourceSets {
14
10
jsMain.dependencies {
15
11
implementation(compose.html.core)
Original file line number Diff line number Diff line change @@ -9,19 +9,11 @@ plugins {
9
9
}
10
10
11
11
kotlin {
12
+ androidTarget()
12
13
jvm(name = " desktop" )
13
- js(compiler = IR ) {
14
- browser()
15
- nodejs()
16
- binaries.executable()
17
- }
14
+ js(IR ) { browser() }
18
15
@OptIn(ExperimentalWasmDsl ::class )
19
- wasmJs {
20
- browser()
21
- nodejs()
22
- binaries.executable()
23
- }
24
- androidTarget()
16
+ wasmJs { browser() }
25
17
// Remember to uncomment kotlin("native.cocoapods") above as well
26
18
// iosX64()
27
19
// iosArm64()
@@ -45,24 +37,19 @@ kotlin {
45
37
implementation(compose.foundation)
46
38
implementation(compose.material)
47
39
implementation(compose.components.resources)
48
- // api("ir.mahozad.multiplatform:wavy-slider:x.y.z")
49
40
api(projects.wavySlider)
50
41
}
51
42
androidMain.dependencies {
52
43
api(libs.androidx.activity.compose)
53
44
api(libs.androidx.appcompat)
54
45
api(libs.androidx.core.ktx)
55
46
}
47
+ @Suppress(" unused" )
56
48
val desktopMain by getting {
57
49
dependencies {
58
50
implementation(compose.desktop.common)
59
51
}
60
52
}
61
- val jsMain by getting
62
- // See above
63
- // val iosX64Main by getting
64
- // val iosArm64Main by getting
65
- // val iosSimulatorArm64Main by getting
66
53
}
67
54
}
68
55
Original file line number Diff line number Diff line change @@ -8,12 +8,9 @@ plugins {
8
8
9
9
kotlin {
10
10
@OptIn(ExperimentalWasmDsl ::class )
11
- wasmJs {
12
- browser()
13
- nodejs()
14
- binaries.executable()
15
- }
11
+ wasmJs { browser() }
16
12
sourceSets {
13
+ @Suppress(" unused" )
17
14
val wasmJsMain by getting {
18
15
dependencies {
19
16
implementation(compose.runtime)
You can’t perform that action at this time.
0 commit comments