Okio 2.8.0 -> 2.10.0 (#430)
This commit is contained in:
Родитель
55df98f7b4
Коммит
a2287c4b69
|
@ -62,10 +62,10 @@ allprojects {
|
|||
],
|
||||
|
||||
okio: [
|
||||
'com.squareup.okio:okio:2.8.0'
|
||||
'com.squareup.okio:okio:2.10.0'
|
||||
],
|
||||
|
||||
okioMulti: 'com.squareup.okio:okio-multiplatform:2.8.0',
|
||||
okioMulti: 'com.squareup.okio:okio-multiplatform:2.10.0',
|
||||
|
||||
testing: [
|
||||
"org.junit.jupiter:junit-jupiter:5.6.2",
|
||||
|
|
|
@ -27,8 +27,4 @@ expect annotation class DefaultMethod()
|
|||
|
||||
expect class ProtocolException(message: String) : IOException
|
||||
|
||||
expect interface Closeable {
|
||||
fun close()
|
||||
}
|
||||
|
||||
expect val DefaultDispatcher: CoroutineDispatcher
|
|
@ -20,9 +20,9 @@
|
|||
*/
|
||||
package com.microsoft.thrifty.protocol
|
||||
|
||||
import com.microsoft.thrifty.internal.Closeable
|
||||
import com.microsoft.thrifty.internal.DefaultMethod
|
||||
import okio.ByteString
|
||||
import okio.Closeable
|
||||
import okio.IOException
|
||||
|
||||
interface Protocol : Closeable {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
package com.microsoft.thrifty.service
|
||||
|
||||
import com.microsoft.thrifty.internal.Closeable
|
||||
import com.microsoft.thrifty.protocol.Protocol
|
||||
import okio.Closeable
|
||||
|
||||
/**
|
||||
* Implements a basic service client that executes methods asynchronously.
|
||||
|
|
|
@ -25,8 +25,8 @@ import com.microsoft.thrifty.ThriftException
|
|||
import com.microsoft.thrifty.ThriftException.Companion.read
|
||||
import com.microsoft.thrifty.internal.AtomicBoolean
|
||||
import com.microsoft.thrifty.internal.AtomicInteger
|
||||
import com.microsoft.thrifty.internal.Closeable
|
||||
import com.microsoft.thrifty.protocol.Protocol
|
||||
import okio.Closeable
|
||||
import okio.IOException
|
||||
|
||||
/**
|
||||
|
|
|
@ -20,8 +20,8 @@
|
|||
*/
|
||||
package com.microsoft.thrifty.transport
|
||||
|
||||
import com.microsoft.thrifty.internal.Closeable
|
||||
import com.microsoft.thrifty.internal.DefaultMethod
|
||||
import okio.Closeable
|
||||
import okio.IOException
|
||||
|
||||
interface Transport : Closeable {
|
||||
|
|
|
@ -27,6 +27,4 @@ actual typealias DefaultMethod = JvmDefault
|
|||
|
||||
actual typealias ProtocolException = java.net.ProtocolException
|
||||
|
||||
actual typealias Closeable = java.io.Closeable
|
||||
|
||||
actual val DefaultDispatcher: CoroutineDispatcher = Dispatchers.IO
|
||||
|
|
Загрузка…
Ссылка в новой задаче