Skip to content

Commit a6199a8

Browse files
committed
Version 0.30.2
1 parent b247998 commit a6199a8

File tree

9 files changed

+52
-12
lines changed

9 files changed

+52
-12
lines changed

CHANGES.md

+7
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# Change log for kotlinx.coroutines
22

3+
## Version 0.30.2
4+
* `Dispatchers.Main` is instantiated lazily (see #658 and #665).
5+
* Blocking coroutine dispatcher views are now shutdown properly (#678).
6+
* Prevent leaking Kotlin 1.3 from atomicfu dependency (#659).
7+
* Thread-pool based dispatcher factories are marked as obsolete (#261).
8+
* Fixed exception loss on `withContext` cancellation (#675).
9+
310
## Version 0.30.1
411
Maintenance release:
512
* Added `Dispatchers.Main` to common dispatchers, which can be used from Android, Swing and JavaFx projects if a corresponding integration library is added to dependencies.

COMPATIBILITY.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ stable public API, and thus `kotlinx.coroutines` is leaving its "experimental" s
1818
Version `1.0.0` (starting with its release candidate build) will have all its deprecated declarations removed and `kotlinx.coroutines.experimental` package will be renamed to `kotlinx.coroutines` without functional changes.
1919
In order to migrate `kotlinx.coroutines` to `1.0.0`, follow these steps:
2020

21-
1. Update `kotlinx.coroutines` to `0.30.1` version.
21+
1. Update `kotlinx.coroutines` to `0.30.2` version.
2222
2. Inspect compiler warnings about deprecated API and migrate it to a proposed alternative. Most of deprecated API has a corresponding replacement which can be applied from IDEA with quickfix.
23-
3. Update Kotlin version to `1.3.0` or to the latest `1.3.0-rc` and `kotlinx.coroutines` to version `0.30.1-eap13`. Then just get rid of `experimental` suffix in all imports.
23+
3. Update Kotlin version to `1.3.0` or to the latest `1.3.0-rc` and `kotlinx.coroutines` to version `0.30.2-eap13`. Then just get rid of `experimental` suffix in all imports.
2424
4. Update `kotlinx.coroutines` to version `1.0.0` or to the corresponding release candidate of it).
2525

README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
[![official JetBrains project](http://jb.gg/badges/official.svg)](https://confluence.jetbrains.com/display/ALL/JetBrains+on+GitHub)
44
[![GitHub license](https://img.shields.io/badge/license-Apache%20License%202.0-blue.svg?style=flat)](http://www.apache.org/licenses/LICENSE-2.0)
5-
[![Download](https://api.bintray.com/packages/kotlin/kotlinx/kotlinx.coroutines/images/download.svg?version=0.30.1) ](https://bintray.com/kotlin/kotlinx/kotlinx.coroutines/0.30.1)
5+
[![Download](https://api.bintray.com/packages/kotlin/kotlinx/kotlinx.coroutines/images/download.svg?version=0.30.2) ](https://bintray.com/kotlin/kotlinx/kotlinx.coroutines/0.30.2)
66

77
Library support for Kotlin coroutines with [multiplatform](#multiplatform) support.
88
This is a companion version for Kotlin 1.2.70 release.
@@ -68,7 +68,7 @@ Add dependencies (you can also add other modules that you need):
6868
<dependency>
6969
<groupId>org.jetbrains.kotlinx</groupId>
7070
<artifactId>kotlinx-coroutines-core</artifactId>
71-
<version>0.30.1</version>
71+
<version>0.30.2</version>
7272
</dependency>
7373
```
7474

@@ -86,7 +86,7 @@ Add dependencies (you can also add other modules that you need):
8686

8787
```groovy
8888
dependencies {
89-
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:0.30.1'
89+
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:0.30.2'
9090
}
9191
```
9292

@@ -120,7 +120,7 @@ Add [`kotlinx-coroutines-android`](ui/kotlinx-coroutines-android)
120120
module as dependency when using `kotlinx.coroutines` on Android:
121121

122122
```groovy
123-
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:0.30.1'
123+
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:0.30.2'
124124
```
125125
This gives you access to Android [Dispatchers.Main](https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-android/kotlinx.coroutines.experimental.android/kotlinx.coroutines.experimental.-dispatchers/index.html)
126126
coroutine dispatcher and also makes sure that in case of crashed coroutine with unhandled exception this

bump-version.sh

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
#!/bin/bash
2+
3+
if [ "$#" -ne 2 ]
4+
then
5+
echo "Use: ./bump-version old_version new_version"
6+
exit
7+
fi
8+
9+
old_version=$1
10+
new_version=$2
11+
12+
update_version() {
13+
echo "Updating version from '$old_version' to '$new_version' in $1"
14+
sed -i.bak s/$old_version/$new_version/g $1
15+
rm $1.bak
16+
}
17+
18+
update_version "README.md"
19+
update_version "ui/coroutines-guide-ui.md"
20+
update_version "ui/coroutines-guide-ui.md"
21+
update_version "native/README.md"
22+
update_version "ui/kotlinx-coroutines-android/example-app/gradle.properties"
23+
update_version "ui/kotlinx-coroutines-android/animation-app/gradle.properties"
24+
update_version "gradle.properties"
25+
26+
result=$(find ./ -type f \( -iname \*.properties -o -iname \*.md \) | grep -v "\.gradle" | grep -v "build" | xargs -I{} grep -H "$old_version" {} | grep -v CHANGES.md)
27+
if [ -z "$result" ];
28+
then
29+
echo "Done"
30+
else
31+
echo "Previous version is present in the project: $result"
32+
33+
fi

gradle.properties

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Kotlin
2-
version=0.30.1-SNAPSHOT
2+
version=0.30.2-SNAPSHOT
33
group=org.jetbrains.kotlinx
44
kotlin_version=1.2.70
55
kotlin_native_version=0.8.2
@@ -21,4 +21,4 @@ mocha_headless_chrome_version=1.8.2
2121
mocha_teamcity_reporter_version=2.2.2
2222
source_map_support_version=0.5.3
2323

24-
kotlin.incremental.multiplatform=true
24+
kotlin.incremental.multiplatform=true

native/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ repositories {
4242
}
4343
4444
dependencies {
45-
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core-native:0.30.1'
45+
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core-native:0.30.2'
4646
}
4747
4848
sourceSets {

ui/coroutines-guide-ui.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ Add dependencies on `kotlinx-coroutines-android` module to the `dependencies { .
165165
`app/build.gradle` file:
166166

167167
```groovy
168-
compile "org.jetbrains.kotlinx:kotlinx-coroutines-android:0.30.1"
168+
compile "org.jetbrains.kotlinx:kotlinx-coroutines-android:0.30.2"
169169
```
170170

171171
Coroutines are experimental feature in Kotlin.

ui/kotlinx-coroutines-android/animation-app/gradle.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,5 @@ org.gradle.jvmargs=-Xmx1536m
1919
kotlin.coroutines=enable
2020

2121
kotlin_version=1.2.70
22-
coroutines_version=0.30.1
22+
coroutines_version=0.30.2
2323

ui/kotlinx-coroutines-android/example-app/gradle.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,5 @@ org.gradle.jvmargs=-Xmx1536m
1919
kotlin.coroutines=enable
2020

2121
kotlin_version=1.2.70
22-
coroutines_version=0.30.1
22+
coroutines_version=0.30.2
2323

0 commit comments

Comments
 (0)