mirror of
https://github.com/KokaKiwi/BarInsta
synced 2024-12-23 05:16:58 +00:00
Fix unresolved reference error. See description.
New okio version is not on the release classpath but it is on the debug classpath. Since leakcanary has move to it, but retrofit2 still uses old. So need to explicitly use old api in code and suppress the deprecation.
This commit is contained in:
parent
9d2cc10083
commit
ed092d7af0
@ -8,7 +8,7 @@ import awais.instagrabber.utils.BitmapUtils.ThumbnailLoadCallback
|
||||
import awais.instagrabber.webservices.interceptors.AddCookiesInterceptor
|
||||
import okhttp3.*
|
||||
import okio.BufferedSink
|
||||
import okio.source
|
||||
import okio.Okio
|
||||
import org.json.JSONObject
|
||||
import java.io.File
|
||||
import java.io.FileInputStream
|
||||
@ -140,8 +140,9 @@ object MediaUploader {
|
||||
}
|
||||
|
||||
@Throws(IOException::class)
|
||||
@Suppress("DEPRECATION_ERROR")
|
||||
override fun writeTo(sink: BufferedSink) {
|
||||
inputStream.source().use { sink.writeAll(it) }
|
||||
Okio.source(inputStream).use { sink.writeAll(it) }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user