File tree Expand file tree Collapse file tree 5 files changed +12
-6
lines changed
main/kotlin/ru/gildor/coroutines/retrofit
test/kotlin/ru/gildor/coroutines/retrofit Expand file tree Collapse file tree 5 files changed +12
-6
lines changed Original file line number Diff line number Diff line change 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 )
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ Download the [JAR](https://bintray.com/gildor/maven/kotlin-coroutines-retrofit#f
1414Gradle:
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
2020Maven:
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
Original file line number Diff line number Diff line change @@ -12,15 +12,15 @@ import org.jetbrains.kotlin.gradle.plugin.KotlinPlatformJvmPlugin
1212import org.jetbrains.kotlin.gradle.plugin.KotlinPluginWrapper
1313
1414plugins {
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
2222group = " ru.gildor.coroutines"
23- version = " 0.10.0 "
23+ version = " 0.10.1 "
2424description = " Provides Kotlin Coroutines suspendable await() extensions for Retrofit Call"
2525
2626repositories {
3434
3535dependencies {
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}
Original file line number Diff line number Diff line change @@ -100,7 +100,7 @@ public suspend fun <T : Any> Call<T>.awaitResult(): Result<T> {
100100}
101101
102102private fun Call <* >.registerOnCompletion (continuation : CancellableContinuation <* >) {
103- continuation.invokeOnCompletion {
103+ continuation.invokeOnCancellation {
104104 if (continuation.isCancelled)
105105 try {
106106 cancel()
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ import retrofit2.HttpException
1111import ru.gildor.coroutines.retrofit.util.MockedCall
1212import ru.gildor.coroutines.retrofit.util.NullBodyCall
1313import ru.gildor.coroutines.retrofit.util.errorResponse
14+ import kotlin.coroutines.experimental.coroutineContext
1415
1516private const val DONE = " Done!"
1617
You can’t perform that action at this time.
0 commit comments