This repository was archived by the owner on Jun 6, 2019. It is now read-only.
File tree Expand file tree Collapse file tree 7 files changed +16
-14
lines changed
main/java/com/jakewharton/retrofit2/adapter/kotlin/coroutines
test/java/com/jakewharton/retrofit2/adapter/kotlin/coroutines Expand file tree Collapse file tree 7 files changed +16
-14
lines changed Original file line number Diff line number Diff line change 1
1
buildscript {
2
2
repositories {
3
3
mavenCentral()
4
+ maven { url " http://dl.bintray.com/kotlin/kotlin-eap" }
4
5
}
5
6
dependencies {
6
- classpath ' org.jetbrains.kotlin:kotlin-gradle-plugin:1.2.10 '
7
+ classpath ' org.jetbrains.kotlin:kotlin-gradle-plugin:1.3-M1 '
7
8
}
8
9
}
9
10
@@ -16,12 +17,13 @@ sourceCompatibility = JavaVersion.VERSION_1_6
16
17
17
18
repositories {
18
19
mavenCentral()
20
+ maven { url " http://dl.bintray.com/kotlin/kotlin-eap" }
19
21
}
20
22
21
23
dependencies {
22
24
api ' com.squareup.retrofit2:retrofit:2.3.0'
23
25
api ' org.jetbrains.kotlin:kotlin-stdlib:1.2.10'
24
- api ' org.jetbrains.kotlinx:kotlinx-coroutines-core:0.20 '
26
+ api ' org.jetbrains.kotlinx:kotlinx-coroutines-core:0.24.0-eap13 '
25
27
26
28
testImplementation ' junit:junit:4.12'
27
29
testImplementation ' com.squareup.okhttp3:mockwebserver:3.9.1'
Original file line number Diff line number Diff line change 13
13
* See the License for the specific language governing permissions and
14
14
* limitations under the License.
15
15
*/
16
- package com.jakewharton.retrofit2.adapter.kotlin.coroutines.experimental
16
+ package com.jakewharton.retrofit2.adapter.kotlin.coroutines
17
17
18
- import kotlinx.coroutines.experimental. CompletableDeferred
19
- import kotlinx.coroutines.experimental. Deferred
18
+ import kotlinx.coroutines.CompletableDeferred
19
+ import kotlinx.coroutines.Deferred
20
20
import retrofit2.Call
21
21
import retrofit2.CallAdapter
22
22
import retrofit2.Callback
Original file line number Diff line number Diff line change 1
1
@file:Suppress(" UNCHECKED_CAST" )
2
2
3
- package com.jakewharton.retrofit2.adapter.kotlin.coroutines.experimental
3
+ package com.jakewharton.retrofit2.adapter.kotlin.coroutines
4
4
5
5
import com.google.common.reflect.TypeToken
6
- import kotlinx.coroutines.experimental. Deferred
6
+ import kotlinx.coroutines.Deferred
7
7
import org.junit.Assert.assertFalse
8
8
import org.junit.Assert.assertTrue
9
9
import org.junit.Test
Original file line number Diff line number Diff line change 1
- package com.jakewharton.retrofit2.adapter.kotlin.coroutines.experimental
1
+ package com.jakewharton.retrofit2.adapter.kotlin.coroutines
2
2
3
3
import okhttp3.Request
4
4
import retrofit2.Call
Original file line number Diff line number Diff line change 13
13
* See the License for the specific language governing permissions and
14
14
* limitations under the License.
15
15
*/
16
- package com .jakewharton .retrofit2 .adapter .kotlin .coroutines . experimental ;
16
+ package com .jakewharton .retrofit2 .adapter .kotlin .coroutines ;
17
17
18
18
import com .google .common .reflect .TypeToken ;
19
19
import java .lang .annotation .Annotation ;
20
20
import java .lang .reflect .Type ;
21
21
import java .util .List ;
22
- import kotlinx .coroutines .experimental . Deferred ;
22
+ import kotlinx .coroutines .Deferred ;
23
23
import okhttp3 .mockwebserver .MockWebServer ;
24
24
import org .junit .Before ;
25
25
import org .junit .Rule ;
Original file line number Diff line number Diff line change 13
13
* See the License for the specific language governing permissions and
14
14
* limitations under the License.
15
15
*/
16
- package com.jakewharton.retrofit2.adapter.kotlin.coroutines.experimental
16
+ package com.jakewharton.retrofit2.adapter.kotlin.coroutines
17
17
18
18
import com.google.common.truth.Truth.assertThat
19
- import kotlinx.coroutines.experimental. Deferred
20
- import kotlinx.coroutines.experimental. runBlocking
19
+ import kotlinx.coroutines.Deferred
20
+ import kotlinx.coroutines.runBlocking
21
21
import okhttp3.mockwebserver.MockResponse
22
22
import okhttp3.mockwebserver.MockWebServer
23
23
import okhttp3.mockwebserver.SocketPolicy.DISCONNECT_AFTER_REQUEST
Original file line number Diff line number Diff line change 13
13
* See the License for the specific language governing permissions and
14
14
* limitations under the License.
15
15
*/
16
- package com .jakewharton .retrofit2 .adapter .kotlin .coroutines . experimental ;
16
+ package com .jakewharton .retrofit2 .adapter .kotlin .coroutines ;
17
17
18
18
import java .io .IOException ;
19
19
import java .lang .annotation .Annotation ;
You can’t perform that action at this time.
0 commit comments