You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGES.md
+20
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,25 @@
1
1
# Change log for kotlinx.coroutines
2
2
3
+
## Version 1.3.4
4
+
5
+
### Flow
6
+
7
+
* Detect missing `awaitClose` calls in `callbackFlow` to make it less error-prone when used with callbacks (#1762, #1770). This change makes `callbackFlow`**different** from `channelFlow`.
8
+
*`ReceiveChannel.asFlow` extension is introduced (#1490).
9
+
* Enforce exception transparency invariant in `flow` builder (#1657).
10
+
* Proper `Dispatcher` support in `Flow` reactive integrations (#1765).
11
+
* Batch `Subscription.request` calls in `Flow` reactive integration (#766).
12
+
*`ObservableValue.asFlow` added to JavaFx integration module (#1695).
13
+
*`ObservableSource.asFlow` added to RxJava2 integration module (#1768).
14
+
15
+
### Other changes
16
+
17
+
*`kotlinx-coroutines-core` is optimized for R8, making it much smaller for Android usages (75 KB for `1.3.4` release).
18
+
* Performance of `Dispatchers.Default` is improved (#1704, #1706).
19
+
* Kotlin is updated to 1.3.70.
20
+
*`CoroutineDispatcher` and `ExecutorCoroutineDispatcher` experimental coroutine context keys are introduced (#1805).
21
+
* Performance of various `Channel` operations is improved (#1565).
This gives you access to Android [Dispatchers.Main]
@@ -164,24 +164,21 @@ threads are handled by Android runtime.
164
164
165
165
#### R8 and ProGuard
166
166
167
-
For R8 no actions required, it will take obfuscation rules from the jar.
168
-
169
-
For Proguard you need to add options from [coroutines.pro](kotlinx-coroutines-core/jvm/resources/META-INF/proguard/coroutines.pro) to your rules manually.
170
-
171
-
R8 is a replacement for ProGuard in Android ecosystem, it is enabled by default since Android gradle plugin 3.4.0 (3.3.0-beta also had it enabled).
167
+
R8 and ProGuard rules are bundled into the [`kotlinx-coroutines-android`](ui/kotlinx-coroutines-android) module.
168
+
For more details see ["Optimization" section for Android](ui/kotlinx-coroutines-android/README.md#optimization).
172
169
173
170
### JS
174
171
175
172
[Kotlin/JS](https://kotlinlang.org/docs/reference/js-overview.html) version of `kotlinx.coroutines` is published as
(follow the link to get the dependency declaration snippet).
186
183
187
184
Only single-threaded code (JS-style) on Kotlin/Native is currently supported.
@@ -203,8 +200,9 @@ to Gradle (in Preferences -> Build, Execution, Deployment -> Build Tools -> Grad
203
200
204
201
### Requirements
205
202
206
-
* JDK >= 1.8 referred to by the `JAVA_HOME` environment variable. JDK must include JavaFX.
203
+
* JDK >= 11 referred to by the `JAVA_HOME` environment variable.
207
204
* JDK 1.6 referred to by the `JDK_16` environment variable. It is okay to have `JDK_16` pointing to `JAVA_HOME` for external contributions.
205
+
* JDK 1.8 referred to by the `JDK_18` environment variable. Only used by nightly stress-tests. It is okay to have `JDK_16` pointing to `JAVA_HOME` for external contributions.
208
206
209
207
## Contributions and releases
210
208
@@ -217,6 +215,12 @@ The `develop` branch is pushed to `master` during release.
217
215
218
216
* Full release procedure checklist is [here](RELEASE.md).
219
217
* Steps for contributing new integration modules are explained [here](integration/README.md#Contributing).
218
+
* Use [Knit](https://github.com/Kotlin/kotlinx-knit/blob/master/README.md) for updates to documentation:
219
+
* In project root directory run `./gradlew knit`.
220
+
* Commit updated documents and examples together with other changes.
221
+
* Use [Binary Compatibility Validator](https://github.com/Kotlin/binary-compatibility-validator/blob/master/README.md) for updates to public API:
222
+
* In project root directory run `./gradlew apiDump`.
223
+
* Commit updated API index together with other changes.
0 commit comments