1
1
import com.vanniktech.maven.publish.SonatypeHost
2
2
import org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi
3
3
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
4
- import org.jetbrains.kotlin.gradle.targets.js.webpack.KotlinWebpackConfig
5
4
6
5
plugins {
7
6
alias(libs.plugins.android.library)
@@ -15,54 +14,43 @@ plugins {
15
14
16
15
kotlin {
17
16
cocoapods {
17
+ version = " 3.0.1"
18
18
summary = " JetLime KMP Library"
19
19
homepage = " https://github.com/pushpalroy/JetLime"
20
- version = " 3.0.0"
21
20
ios.deploymentTarget = " 14.0"
22
21
framework {
23
22
baseName = " JetLime"
24
23
isStatic = true
25
24
}
26
25
}
27
26
27
+ js(IR ) {
28
+ browser()
29
+ binaries.library()
30
+ }
31
+
28
32
@OptIn(org.jetbrains.kotlin.gradle.ExperimentalWasmDsl ::class )
29
33
wasmJs {
30
- moduleName = " composeApp"
31
34
browser {
32
- commonWebpackConfig {
33
- outputFileName = " composeApp.js"
34
- devServer =
35
- (devServer ? : KotlinWebpackConfig .DevServer ()).apply {
36
- static =
37
- (static ? : mutableListOf ()).apply {
38
- // Serve sources to debug inside browser
39
- add(project.projectDir.path)
40
- }
41
- }
35
+ testTask {
36
+ enabled = false
42
37
}
43
38
}
44
- binaries.executable ()
39
+ binaries.library ()
45
40
}
46
41
47
42
androidTarget {
48
43
@OptIn(ExperimentalKotlinGradlePluginApi ::class )
49
44
compilerOptions {
50
- jvmTarget.set(JvmTarget .JVM_1_8 )
45
+ jvmTarget.set(JvmTarget .JVM_17 )
51
46
}
52
47
}
53
48
54
49
jvm(" desktop" )
55
50
56
- listOf (
57
- iosX64(),
58
- iosArm64(),
59
- iosSimulatorArm64(),
60
- ).forEach { iosTarget ->
61
- iosTarget.binaries.framework {
62
- baseName = " ComposeApp"
63
- isStatic = true
64
- }
65
- }
51
+ iosX64()
52
+ iosArm64()
53
+ iosSimulatorArm64()
66
54
67
55
sourceSets {
68
56
val desktopMain by getting
@@ -78,7 +66,6 @@ kotlin {
78
66
implementation(compose.material3)
79
67
implementation(compose.ui)
80
68
implementation(compose.components.uiToolingPreview)
81
-
82
69
api(libs.kotlinx.collections.immutable)
83
70
}
84
71
desktopMain.dependencies {
@@ -116,8 +103,8 @@ android {
116
103
}
117
104
}
118
105
compileOptions {
119
- sourceCompatibility = JavaVersion .VERSION_1_8
120
- targetCompatibility = JavaVersion .VERSION_1_8
106
+ sourceCompatibility = JavaVersion .VERSION_17
107
+ targetCompatibility = JavaVersion .VERSION_17
121
108
}
122
109
buildFeatures {
123
110
compose = true
@@ -160,7 +147,7 @@ mavenPublishing {
160
147
val artifactId = " jetlime"
161
148
162
149
// Define coordinates for the published artifact
163
- coordinates(" io.github.pushpalroy" , artifactId, " 3.0.0 " )
150
+ coordinates(" io.github.pushpalroy" , artifactId, " 3.0.1 " )
164
151
165
152
// Configure POM metadata for the published artifact
166
153
pom {
0 commit comments