Skip to content

Commit bfe9e75

Browse files
authored
Merge pull request #218 from arkivanov/update-Kotlin-to-1.5.0
Update Kotlin to 1.5.0
2 parents cf971c1 + 9ef15f8 commit bfe9e75

File tree

6 files changed

+14
-36
lines changed

6 files changed

+14
-36
lines changed

buildSrc/buildSrc/src/main/kotlin/dependencies/Deps.kt

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ object Deps {
22

33
object Jetbrains {
44
object Kotlin : Group(name = "org.jetbrains.kotlin") {
5-
private const val version = "1.4.30"
5+
private const val version = "1.5.0"
66

77
object Plugin {
88
object Gradle : Dependency(group = Kotlin, name = "kotlin-gradle-plugin", version = version)
@@ -14,9 +14,7 @@ object Deps {
1414
object Js : Dependency(group = Kotlin, name = "kotlin-stdlib-js", version = version)
1515
}
1616

17-
object Test {
18-
object Common : Dependency(group = Kotlin, name = "kotlin-test-common", version = version)
19-
object Js : Dependency(group = Kotlin, name = "kotlin-test-js", version = version)
17+
object Test : Dependency(group = Kotlin, name = "kotlin-test", version = version) {
2018
object Junit : Dependency(group = Kotlin, name = "kotlin-test-junit", version = version)
2119
}
2220

@@ -38,7 +36,7 @@ object Deps {
3836
object Android {
3937
object Tools {
4038
object Build : Group(name = "com.android.tools.build") {
41-
object Gradle : Dependency(group = Build, name = "gradle", version = "4.1.0")
39+
object Gradle : Dependency(group = Build, name = "gradle", version = "4.2.0")
4240
}
4341
}
4442
}

buildSrc/src/main/kotlin/Config.kt

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,7 @@ fun Project.setupMultiplatform() {
162162

163163
commonTest {
164164
dependencies {
165-
implementation(Deps.Jetbrains.Kotlin.Test.Common)
166-
implementation(Deps.Jetbrains.Kotlin.TestAnnotations.Common)
165+
implementation(Deps.Jetbrains.Kotlin.Test)
167166
}
168167
}
169168

@@ -188,10 +187,6 @@ fun Project.setupMultiplatform() {
188187
jvmCommonTest {
189188
dependsOn(jvmNativeCommonTest)
190189
dependsOn(jvmJsCommonTest)
191-
192-
dependencies {
193-
implementation(Deps.Jetbrains.Kotlin.Test.Junit)
194-
}
195190
}
196191

197192
jvmMain.dependsOn(jvmCommonMain)
@@ -212,10 +207,6 @@ fun Project.setupMultiplatform() {
212207
jsTest {
213208
dependsOn(jsNativeCommonTest)
214209
dependsOn(jvmJsCommonTest)
215-
216-
dependencies {
217-
implementation(Deps.Jetbrains.Kotlin.Test.Js)
218-
}
219210
}
220211

221212
nativeCommonMain {

gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
33
zipStoreBase=GRADLE_USER_HOME
44
zipStorePath=wrapper/dists
5-
distributionUrl=https\://services.gradle.org/distributions/gradle-6.5-all.zip
5+
distributionUrl=https\://services.gradle.org/distributions/gradle-6.8.3-all.zip

mvikotlin-test-internal/build.gradle.kts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,11 @@ kotlinCompat {
77
implementation(project(":mvikotlin"))
88
implementation(project(":rx"))
99
implementation(project(":utils-internal"))
10-
implementation(Deps.Jetbrains.Kotlin.Test.Common)
10+
implementation(Deps.Jetbrains.Kotlin.Test)
1111
implementation(Deps.Jetbrains.Kotlin.TestAnnotations.Common)
1212
}
1313
}
1414

15-
jsMain {
16-
dependencies {
17-
implementation(Deps.Jetbrains.Kotlin.Test.Js)
18-
}
19-
}
20-
2115
jvmCommonMain {
2216
dependencies {
2317
implementation(Deps.Jetbrains.Kotlin.Test.Junit)

sample/todo-app-js/build.gradle.kts

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,15 @@ plugins {
22
kotlin("js")
33
}
44

5+
kotlin {
6+
js {
7+
useCommonJs()
8+
browser()
9+
}
10+
}
11+
512
repositories {
613
maven("https://dl.bintray.com/kotlin/kotlin-js-wrappers")
7-
814
}
915

1016
val kotlin_version = "pre.94-kotlin-1.3.70" // for kotlin-wrappers
@@ -35,7 +41,6 @@ dependencies {
3541

3642
implementation(npm("core-js", "2.6.5"))
3743
implementation(npm("svg-inline-loader", "0.8.0"))
38-
implementation(npm("abort-controller"))
3944
implementation(npm("react", "16.13.0"))
4045
implementation(npm("react-dom", "16.13.0"))
4146
implementation(npm("react-is", "16.13.0"))
@@ -44,13 +49,3 @@ dependencies {
4449
implementation(npm("@material-ui/core", "4.9.14"))
4550
implementation(npm("@material-ui/icons", "4.9.1"))
4651
}
47-
48-
kotlin.withGroovyBuilder {
49-
"js" {
50-
"useCommonJs"()
51-
"browser"()
52-
"binaries" {
53-
"executable"()
54-
}
55-
}
56-
}

sample/todo-app-js/src/main/kotlin/root/Main.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,5 @@ fun main() {
3131
}
3232

3333
fun Any.debugLog(text: String?) {
34-
if (text.isNullOrEmpty().not()) console.log("${this::class.simpleName?.toUpperCase()}: $text")
34+
if (text.isNullOrEmpty().not()) console.log("${this::class.simpleName?.uppercase()}: $text")
3535
}

0 commit comments

Comments
 (0)