|
1 |
| -Kotlin Coroutine (Experimental) Adapter |
2 |
| -======================================= |
| 1 | +Kotlin Coroutine Adapter |
| 2 | +======================== |
3 | 3 |
|
4 | 4 | A Retrofit 2 `CallAdapter.Factory` for [Kotlin coroutine's][1] `Deferred`.
|
5 | 5 |
|
@@ -32,15 +32,29 @@ interface MyService {
|
32 | 32 | Download
|
33 | 33 | --------
|
34 | 34 |
|
35 |
| -Download [the latest JAR][2] or grab via [Maven][3]: |
| 35 | +If you are using Kotlin 1.3, download [the latest JAR][2] or grab via [Maven][3]: |
| 36 | +```xml |
| 37 | +<dependency> |
| 38 | + <groupId>com.jakewharton.retrofit</groupId> |
| 39 | + <artifactId>retrofit2-kotlin-coroutines-adapter</artifactId> |
| 40 | + <version>0.9.0</version> |
| 41 | +</dependency> |
| 42 | +``` |
| 43 | +or [Gradle][3]: |
| 44 | +```groovy |
| 45 | +compile 'com.jakewharton.retrofit:retrofit2-kotlin-coroutines-adapter:0.9.0' |
| 46 | +``` |
| 47 | + |
| 48 | +If you are using Kotlin pre-1.3 and experimental coroutines, download [its latest JAR][4] or grab |
| 49 | +via [Maven][5]: |
36 | 50 | ```xml
|
37 | 51 | <dependency>
|
38 | 52 | <groupId>com.jakewharton.retrofit</groupId>
|
39 | 53 | <artifactId>retrofit2-kotlin-coroutines-experimental-adapter</artifactId>
|
40 | 54 | <version>1.0.0</version>
|
41 | 55 | </dependency>
|
42 | 56 | ```
|
43 |
| -or [Gradle][3]: |
| 57 | +or [Gradle][5]: |
44 | 58 | ```groovy
|
45 | 59 | compile 'com.jakewharton.retrofit:retrofit2-kotlin-coroutines-experimental-adapter:1.0.0'
|
46 | 60 | ```
|
@@ -69,6 +83,8 @@ License
|
69 | 83 |
|
70 | 84 |
|
71 | 85 | [1]: https://kotlinlang.org/docs/reference/coroutines.html
|
72 |
| - [2]: https://search.maven.org/remote_content?g=com.jakewharton.retrofit&a=retrofit2-kotlin-coroutines-experimental-adapter&v=LATEST |
73 |
| - [3]: http://search.maven.org/#search%7Cga%7C1%7Cg%3A%22com.jakewharton.retrofit%22%20a%3A%22retrofit2-kotlin-coroutines-experimental-adapter%22 |
| 86 | + [2]: https://search.maven.org/remote_content?g=com.jakewharton.retrofit&a=retrofit2-kotlin-coroutines-adapter&v=LATEST |
| 87 | + [3]: http://search.maven.org/#search%7Cga%7C1%7Cg%3A%22com.jakewharton.retrofit%22%20a%3A%22retrofit2-kotlin-coroutines-adapter%22 |
| 88 | + [4]: https://search.maven.org/remote_content?g=com.jakewharton.retrofit&a=retrofit2-kotlin-coroutines-experimental-adapter&v=LATEST |
| 89 | + [5]: http://search.maven.org/#search%7Cga%7C1%7Cg%3A%22com.jakewharton.retrofit%22%20a%3A%22retrofit2-kotlin-coroutines-experimental-adapter%22 |
74 | 90 | [snap]: https://oss.sonatype.org/content/repositories/snapshots/
|
0 commit comments