Created
December 24, 2021 07:52
-
-
Save jimlyas/f1e3c29d1f75c67ead129445176c2fa9 to your computer and use it in GitHub Desktop.
Release version Interceptor`
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class EnvironmentInterceptor : Interceptor { | |
override fun intercept(chain: Interceptor.Chain) = chain.proceed(chain.request()) | |
fun setEnvironment(ctx: Context, action: () -> Unit) { | |
action.invoke() | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment