Skip to content

Commit

Permalink
Update Kotlin (#2902)
Browse files Browse the repository at this point in the history
* Update Kotlin to 1.5.30
* Add new M1 targets
  • Loading branch information
qwwdfsad committed Aug 26, 2021
1 parent 50807d0 commit dfa1b63
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 8 deletions.
8 changes: 4 additions & 4 deletions README.md
Expand Up @@ -3,11 +3,11 @@
[![official JetBrains project](https://jb.gg/badges/official.svg)](https://confluence.jetbrains.com/display/ALL/JetBrains+on+GitHub)
[![GitHub license](https://img.shields.io/badge/license-Apache%20License%202.0-blue.svg?style=flat)](https://www.apache.org/licenses/LICENSE-2.0)
[![Download](https://img.shields.io/maven-central/v/org.jetbrains.kotlinx/kotlinx-coroutines-core/1.5.1)](https://search.maven.org/artifact/org.jetbrains.kotlinx/kotlinx-coroutines-core/1.5.1/pom)
[![Kotlin](https://img.shields.io/badge/kotlin-1.5.20-blue.svg?logo=kotlin)](http://kotlinlang.org)
[![Kotlin](https://img.shields.io/badge/kotlin-1.5.30-blue.svg?logo=kotlin)](http://kotlinlang.org)
[![Slack channel](https://img.shields.io/badge/chat-slack-green.svg?logo=slack)](https://kotlinlang.slack.com/messages/coroutines/)

Library support for Kotlin coroutines with [multiplatform](#multiplatform) support.
This is a companion version for the Kotlin `1.5.20` release.
This is a companion version for the Kotlin `1.5.30` release.

```kotlin
suspend fun main() = coroutineScope {
Expand Down Expand Up @@ -91,7 +91,7 @@ And make sure that you use the latest Kotlin version:

```xml
<properties>
<kotlin.version>1.5.20</kotlin.version>
<kotlin.version>1.5.30</kotlin.version>
</properties>
```

Expand All @@ -109,7 +109,7 @@ And make sure that you use the latest Kotlin version:

```groovy
buildscript {
ext.kotlin_version = '1.5.20'
ext.kotlin_version = '1.5.30'
}
```

Expand Down
4 changes: 2 additions & 2 deletions gradle.properties
Expand Up @@ -5,12 +5,12 @@
# Kotlin
version=1.5.1-SNAPSHOT
group=org.jetbrains.kotlinx
kotlin_version=1.5.20
kotlin_version=1.5.30

# Dependencies
junit_version=4.12
junit5_version=5.7.0
atomicfu_version=0.16.2
atomicfu_version=0.16.3
knit_version=0.3.0
html_version=0.7.2
lincheck_version=2.14
Expand Down
4 changes: 4 additions & 0 deletions gradle/compile-native-multiplatform.gradle
Expand Up @@ -25,6 +25,10 @@ kotlin {
addTarget(presets.watchosArm64)
addTarget(presets.watchosX86)
addTarget(presets.watchosX64)
addTarget(presets.iosSimulatorArm64)
addTarget(presets.watchosSimulatorArm64)
addTarget(presets.tvosSimulatorArm64)
addTarget(presets.macosArm64)
}

sourceSets {
Expand Down
Expand Up @@ -65,7 +65,6 @@ class CoroutineDispatcherOperatorFunInvokeTest : TestBase() {
dispatcher.dispatch(context, block)
}

@ExperimentalCoroutinesApi
override fun isDispatchNeeded(context: CoroutineContext): Boolean {
return dispatcher.isDispatchNeeded(context)
}
Expand Down
1 change: 0 additions & 1 deletion kotlinx-coroutines-core/common/test/flow/VirtualTime.kt
Expand Up @@ -48,7 +48,6 @@ internal class VirtualTimeDispatcher(enclosingScope: CoroutineScope) : Coroutine
originalDispatcher.dispatch(context, block)
}

@ExperimentalCoroutinesApi
override fun isDispatchNeeded(context: CoroutineContext): Boolean = originalDispatcher.isDispatchNeeded(context)

override fun invokeOnTimeout(timeMillis: Long, block: Runnable, context: CoroutineContext): DisposableHandle {
Expand Down
1 change: 1 addition & 0 deletions kotlinx-coroutines-core/jvm/test/FieldWalker.kt
Expand Up @@ -89,6 +89,7 @@ object FieldWalker {
cur = ref.parent
path += "[${ref.index}]"
}
else -> error("Should not be reached")
}
}
path.reverse()
Expand Down

0 comments on commit dfa1b63

Please sign in to comment.