Skip to content

Commit

Permalink
Updated kotlin to 1.2.41 and coroutines to 0.23.1. (#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
bohsen authored and gildor committed Jun 12, 2018
1 parent 16a1641 commit f44e71f
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 6 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# CHANGELOG

## Version 0.10.1 (2017-06-12)

- [kotlinx.coroutines 0.23.1](https://github.com/Kotlin/kotlinx.coroutines/releases/)
- Compiled against Kotlin 1.2.41

## Version 0.10.0 (2017-04-26)

- [Retrofit 2.4.0](https://github.com/square/retrofit/blob/parent-2.4.0/CHANGELOG.md#version-240-2018-03-14)
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Download the [JAR](https://bintray.com/gildor/maven/kotlin-coroutines-retrofit#f
Gradle:

```groovy
compile 'ru.gildor.coroutines:kotlin-coroutines-retrofit:0.10.0'
compile 'ru.gildor.coroutines:kotlin-coroutines-retrofit:0.10.1'
```

Maven:
Expand All @@ -23,7 +23,7 @@ Maven:
<dependency>
<groupId>ru.gildor.coroutines</groupId>
<artifactId>kotlin-coroutines-retrofit</artifactId>
<version>0.10.0</version>
<version>0.10.1</version>
</dependency>
```

Expand Down
6 changes: 3 additions & 3 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ import org.jetbrains.kotlin.gradle.plugin.KotlinPlatformJvmPlugin
import org.jetbrains.kotlin.gradle.plugin.KotlinPluginWrapper

plugins {
id("org.jetbrains.kotlin.jvm") version "1.2.40"
id("org.jetbrains.kotlin.jvm") version "1.2.41"
id("com.jfrog.bintray") version "1.7.3"
jacoco
`maven-publish`
id("org.jetbrains.dokka") version "0.9.16"
}

group = "ru.gildor.coroutines"
version = "0.10.0"
version = "0.10.1"
description = "Provides Kotlin Coroutines suspendable await() extensions for Retrofit Call"

repositories {
Expand All @@ -34,7 +34,7 @@ java {

dependencies {
compile("org.jetbrains.kotlin:kotlin-stdlib")
compile("org.jetbrains.kotlinx:kotlinx-coroutines-core:0.22.5")
compile("org.jetbrains.kotlinx:kotlinx-coroutines-core:0.23.1")
compile("com.squareup.retrofit2:retrofit:2.4.0")
testCompile("junit:junit:4.12")
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/kotlin/ru/gildor/coroutines/retrofit/CallAwait.kt
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ public suspend fun <T : Any> Call<T>.awaitResult(): Result<T> {
}

private fun Call<*>.registerOnCompletion(continuation: CancellableContinuation<*>) {
continuation.invokeOnCompletion {
continuation.invokeOnCancellation {
if (continuation.isCancelled)
try {
cancel()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import retrofit2.HttpException
import ru.gildor.coroutines.retrofit.util.MockedCall
import ru.gildor.coroutines.retrofit.util.NullBodyCall
import ru.gildor.coroutines.retrofit.util.errorResponse
import kotlin.coroutines.experimental.coroutineContext

private const val DONE = "Done!"

Expand Down

0 comments on commit f44e71f

Please sign in to comment.