Skip to content

Commit 5f98b65

Browse files
committed
updated gradle, agp, quickjs-android replaced on zipline-android, targetSdk = 36
1 parent 2aca8b2 commit 5f98b65

File tree

20 files changed

+95
-68
lines changed

20 files changed

+95
-68
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ allprojects {
3636
project build.gradle
3737
```groovy
3838
dependencies {
39-
commonMainApi("dev.icerock.moko:javascript:0.3.0")
39+
commonMainApi("dev.icerock.moko:javascript:0.4.0")
4040
}
4141
```
4242

gradle.properties

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,8 @@ org.gradle.configureondemand=false
33
org.gradle.parallel=true
44

55
kotlin.code.style=official
6-
kotlin.native.enableDependencyPropagation=false
7-
kotlin.mpp.enableGranularSourceSetsMetadata=true
8-
kotlin.mpp.enableCompatibilityMetadataVariant=true
96

107
android.useAndroidX=true
118

129
mobile.multiplatform.iosTargetWarning=false
10+
kotlin.mpp.defaultHierarchies.template.enabled=false

gradle/libs.versions.toml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
[versions]
2-
kotlinTestVersion = "1.6.21"
3-
androidAppCompatVersion = "1.2.0"
4-
materialDesignVersion = "1.0.0"
5-
androidLifecycleVersion = "2.1.0"
6-
androidCoreTestingVersion = "1.3.0"
7-
testJUnitExtVersion = "1.1.2"
8-
quickjsVersion = "0.9.2"
9-
coroutinesVersion = "1.6.0-native-mt"
10-
kotlinxSerializationVersion = "1.3.3"
2+
kotlinTestVersion = "1.9.25"
3+
androidAppCompatVersion = "1.7.1"
4+
materialDesignVersion = "1.13.0"
5+
androidLifecycleVersion = "2.2.0"
6+
androidCoreTestingVersion = "1.7.0"
7+
testJUnitExtVersion = "1.3.0"
8+
coroutinesVersion = "1.8.1"
9+
kotlinxSerializationVersion = "1.6.3"
1110
mokoTestVersion = "0.6.1"
12-
mokoJavascriptVersion = "0.3.0"
11+
mokoJavascriptVersion = "0.4.0"
12+
ziplineVersion = "1.23.0"
1313

1414

1515
[libraries]
@@ -21,7 +21,7 @@ testRunner = { module = "androidx.test:runner", version.ref = "androidCoreTestin
2121
testRules = { module = "androidx.test:rules", version.ref = "androidCoreTestingVersion" }
2222
testJUnitExt = { module = "androidx.test.ext:junit", version.ref = "testJUnitExtVersion" }
2323
testJUnitExtKtx = { module = "androidx.test.ext:junit-ktx", version.ref = "testJUnitExtVersion" }
24-
quickjs = { module = "app.cash.quickjs:quickjs-android", version.ref = "quickjsVersion" }
24+
ziplineAndroid = { module = "app.cash.zipline:zipline-android", version.ref = "ziplineVersion" }
2525
coroutines = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-core", version.ref = "coroutinesVersion" }
2626
kotlinSerialization = { module = "org.jetbrains.kotlinx:kotlinx-serialization-json", version.ref = "kotlinxSerializationVersion" }
2727
kotlinTest = { module = "org.jetbrains.kotlin:kotlin-test-common", version.ref = "kotlinTestVersion" }
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1+
#Mon Sep 15 18:35:34 NOVT 2025
12
distributionBase=GRADLE_USER_HOME
23
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.0.2-bin.zip
4+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.3-bin.zip
45
zipStoreBase=GRADLE_USER_HOME
56
zipStorePath=wrapper/dists

javascript-build-logic/build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ repositories {
1111

1212
dependencies {
1313
api("dev.icerock:mobile-multiplatform:0.14.1")
14-
api("org.jetbrains.kotlin:kotlin-gradle-plugin:1.6.21")
15-
api("com.android.tools.build:gradle:7.0.1")
14+
api("org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.25")
15+
api("com.android.tools.build:gradle:8.12.3")
1616
api("io.gitlab.arturbosch.detekt:detekt-gradle-plugin:1.15.0")
1717
}

javascript-build-logic/src/main/kotlin/android-app-convention.gradle.kts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,6 @@ plugins {
99
}
1010

1111
android {
12-
dexOptions {
13-
javaMaxHeapSize = "2g"
14-
}
15-
1612
buildTypes {
1713
getByName("release") {
1814
isMinifyEnabled = true
@@ -24,9 +20,13 @@ android {
2420
}
2521
}
2622

27-
packagingOptions {
28-
exclude("META-INF/*.kotlin_module")
29-
exclude("META-INF/AL2.0")
30-
exclude("META-INF/LGPL2.1")
23+
packaging {
24+
resources {
25+
excludes += listOf(
26+
"META-INF/*.kotlin_module",
27+
"META-INF/AL2.0",
28+
"META-INF/LGPL2.1"
29+
)
30+
}
3131
}
3232
}

javascript-build-logic/src/main/kotlin/android-base-convention.gradle.kts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
import com.android.build.gradle.BaseExtension
66

77
configure<BaseExtension> {
8-
compileSdkVersion(30)
8+
compileSdkVersion(36)
99

1010
defaultConfig {
11-
minSdkVersion(18)
12-
targetSdkVersion(30)
11+
minSdk = 18
12+
targetSdk = 36
1313
}
1414
}

javascript-build-logic/src/main/kotlin/multiplatform-library-convention.gradle.kts

Lines changed: 26 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,29 +10,44 @@ plugins {
1010
}
1111

1212
kotlin {
13-
ios()
13+
iosX64()
14+
iosArm64()
1415
iosSimulatorArm64()
15-
android {
16+
androidTarget {
1617
publishLibraryVariants("release", "debug")
1718
}
19+
1820
sourceSets {
21+
val mobileDeviceTest by creating
22+
23+
val commonMain by getting
24+
val iosX64Main by getting
25+
val iosArm64Main by getting
1926
val iosSimulatorArm64Main by getting
27+
28+
val iosMain by creating {
29+
iosX64Main.dependsOn(this)
30+
iosArm64Main.dependsOn(this)
31+
iosSimulatorArm64Main.dependsOn(this)
32+
}
33+
iosMain.dependsOn(commonMain)
34+
35+
val iosX64Test by getting
36+
val iosArm64Test by getting
2037
val iosSimulatorArm64Test by getting
2138

22-
val mobileDeviceTest by creating
39+
val iosTest by creating {
40+
iosX64Test.dependsOn(this)
41+
iosArm64Test.dependsOn(this)
42+
iosSimulatorArm64Test.dependsOn(this)
43+
}
44+
val androidUnitTest by getting
2345

2446
val commonTest by getting
25-
val iosMain by getting
26-
val iosTest by getting
27-
val androidAndroidTest by getting
28-
29-
iosSimulatorArm64Main.dependsOn(iosMain)
30-
iosSimulatorArm64Test.dependsOn(iosTest)
3147

3248
mobileDeviceTest.dependsOn(commonTest)
3349
iosTest.dependsOn(mobileDeviceTest)
34-
androidAndroidTest.dependsOn(mobileDeviceTest)
35-
50+
androidUnitTest.dependsOn(mobileDeviceTest)
3651
}
3752
}
3853

javascript/build.gradle.kts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,26 +7,26 @@ import org.gradle.api.tasks.testing.logging.TestLogEvent
77

88
plugins {
99
id("multiplatform-library-convention")
10-
id("dev.icerock.mobile.multiplatform.android-manifest")
1110
id("publication-convention")
1211
}
1312

1413
android {
14+
namespace = "dev.icerock.moko.javascript"
1515
testOptions.unitTests.isIncludeAndroidResources = true
1616
defaultConfig {
1717
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
1818
}
1919

2020
sourceSets {
21-
getByName("androidTest").java.srcDirs(
21+
getByName("test").java.srcDirs(
2222
file("src/androidAndroidTest/kotlin"),
2323
file("src/mobileDeviceTest/kotlin")
2424
)
2525
}
2626
}
2727

2828
dependencies {
29-
androidMainImplementation(libs.quickjs)
29+
androidMainImplementation(libs.ziplineAndroid)
3030
commonMainImplementation(libs.kotlinSerialization)
3131
commonTestImplementation(libs.kotlinTest)
3232
commonTestImplementation(libs.kotlinTestAnnotations)

javascript/src/androidMain/AndroidManifest.xml

Lines changed: 0 additions & 2 deletions
This file was deleted.

0 commit comments

Comments
 (0)