Skip to content

Commit a11e185

Browse files
authored
Remove workarounds for Kotlin 1.3 (#2519)
1 parent 01dcfe5 commit a11e185

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

gradle/compile-js-multiplatform.gradle

+2-7
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,13 @@ apply from: rootProject.file('gradle/node-js.gradle')
66

77
kotlin {
88
js {
9-
// In 1.3.7x js() has not member `moduleName`
10-
// In 1.4.x it has and allow to safety set compiler output file name and does not break test integration
11-
if (it.hasProperty("moduleName")) {
12-
moduleName = project.name
13-
}
9+
moduleName = project.name
1410

15-
// In 1.3.7x js() has not member `irTarget`
1611
// In 1.4.x it has in `both` and `legacy` mode and js() is of type `KotlinJsTarget`
1712
// `irTarget` is non-null in `both` mode
1813
// and contains appropriate `irTarget` with type `KotlinJsIrTarget`
1914
// `irTarget` is null in `legacy` mode
20-
if (it.hasProperty("irTarget") && it.irTarget != null) {
15+
if (it.irTarget != null) {
2116
irTarget.nodejs()
2217
irTarget.compilations['main']?.dependencies {
2318
api "org.jetbrains.kotlinx:atomicfu-js:$atomicfu_version"

0 commit comments

Comments
 (0)