Add annotations
This commit is contained in:
1 parent
d895a07583
commit
73b3cd4625
2 files changed
+3
No files matched your search
@@ -156,6 +156,8 @@ class EhApplication : Application(), ImageLoaderFactory {
|
||||
alwaysReadResponseBody(false)
|
||||
}.build(),
|
||||
)
|
||||
|
||||
// TODO: Rewrite CronetInterceptor to use android.net.http.HttpEngine and make it Android 14 only when released
|
||||
addInterceptor(CronetInterceptor.newBuilder(cronetHttpClient).build())
|
||||
}
|
||||
}
|
||||
|
||||
@@ -26,6 +26,7 @@ val cronetHttpClient: CronetEngine = CronetEngine.Builder(appCtx).apply {
|
||||
|
||||
val cronetHttpClientExecutor = EhApplication.nonCacheOkHttpClient.dispatcher.executorService
|
||||
|
||||
// TODO: Rewrite this to use android.net.http.HttpEngine and make it Android 14 only when released
|
||||
class CronetRequest : AutoCloseable {
|
||||
lateinit var mConsumer: (UrlResponseInfo, ByteBuffer) -> Unit
|
||||
lateinit var onResponse: CronetRequest.(UrlResponseInfo) -> Unit
|
||||
|
||||
Reference in new issue
Block a user