Skip to content

Instantly share code, notes, and snippets.

@RomanPozdeev
RomanPozdeev / gist:4cfb5a3693f5969b98e5927a412bf18e
Created May 14, 2021 11:48
retrofit coroutines workaround
import kotlinx.coroutines.runBlocking
import kotlinx.coroutines.withContext
import retrofit2.Retrofit
import java.lang.reflect.InvocationHandler
import java.lang.reflect.Method
import java.lang.reflect.Proxy
import kotlin.coroutines.Continuation
import kotlin.coroutines.CoroutineContext
package mtsit.com.finservice.viewbindingdsl
import android.content.Context
import android.content.res.ColorStateList
import android.graphics.drawable.Drawable
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.annotation.ColorInt
import androidx.annotation.ColorRes