Skip to content

Commit f44e71f

Browse files
bohsengildor
authored andcommitted
Updated kotlin to 1.2.41 and coroutines to 0.23.1. (#39)
1 parent 16a1641 commit f44e71f

File tree

5 files changed

+12
-6
lines changed

5 files changed

+12
-6
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# CHANGELOG
22

3+
## Version 0.10.1 (2017-06-12)
4+
5+
- [kotlinx.coroutines 0.23.1](https://github.com/Kotlin/kotlinx.coroutines/releases/)
6+
- Compiled against Kotlin 1.2.41
7+
38
## Version 0.10.0 (2017-04-26)
49

510
- [Retrofit 2.4.0](https://github.com/square/retrofit/blob/parent-2.4.0/CHANGELOG.md#version-240-2018-03-14)

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Download the [JAR](https://bintray.com/gildor/maven/kotlin-coroutines-retrofit#f
1414
Gradle:
1515

1616
```groovy
17-
compile 'ru.gildor.coroutines:kotlin-coroutines-retrofit:0.10.0'
17+
compile 'ru.gildor.coroutines:kotlin-coroutines-retrofit:0.10.1'
1818
```
1919

2020
Maven:
@@ -23,7 +23,7 @@ Maven:
2323
<dependency>
2424
<groupId>ru.gildor.coroutines</groupId>
2525
<artifactId>kotlin-coroutines-retrofit</artifactId>
26-
<version>0.10.0</version>
26+
<version>0.10.1</version>
2727
</dependency>
2828
```
2929

build.gradle.kts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@ import org.jetbrains.kotlin.gradle.plugin.KotlinPlatformJvmPlugin
1212
import org.jetbrains.kotlin.gradle.plugin.KotlinPluginWrapper
1313

1414
plugins {
15-
id("org.jetbrains.kotlin.jvm") version "1.2.40"
15+
id("org.jetbrains.kotlin.jvm") version "1.2.41"
1616
id("com.jfrog.bintray") version "1.7.3"
1717
jacoco
1818
`maven-publish`
1919
id("org.jetbrains.dokka") version "0.9.16"
2020
}
2121

2222
group = "ru.gildor.coroutines"
23-
version = "0.10.0"
23+
version = "0.10.1"
2424
description = "Provides Kotlin Coroutines suspendable await() extensions for Retrofit Call"
2525

2626
repositories {
@@ -34,7 +34,7 @@ java {
3434

3535
dependencies {
3636
compile("org.jetbrains.kotlin:kotlin-stdlib")
37-
compile("org.jetbrains.kotlinx:kotlinx-coroutines-core:0.22.5")
37+
compile("org.jetbrains.kotlinx:kotlinx-coroutines-core:0.23.1")
3838
compile("com.squareup.retrofit2:retrofit:2.4.0")
3939
testCompile("junit:junit:4.12")
4040
}

src/main/kotlin/ru/gildor/coroutines/retrofit/CallAwait.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ public suspend fun <T : Any> Call<T>.awaitResult(): Result<T> {
100100
}
101101

102102
private fun Call<*>.registerOnCompletion(continuation: CancellableContinuation<*>) {
103-
continuation.invokeOnCompletion {
103+
continuation.invokeOnCancellation {
104104
if (continuation.isCancelled)
105105
try {
106106
cancel()

src/test/kotlin/ru/gildor/coroutines/retrofit/CallAwaitTest.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import retrofit2.HttpException
1111
import ru.gildor.coroutines.retrofit.util.MockedCall
1212
import ru.gildor.coroutines.retrofit.util.NullBodyCall
1313
import ru.gildor.coroutines.retrofit.util.errorResponse
14+
import kotlin.coroutines.experimental.coroutineContext
1415

1516
private const val DONE = "Done!"
1617

0 commit comments

Comments
 (0)