Skip to content

Instantly share code, notes, and snippets.

@jimlyas
Created December 24, 2021 07:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jimlyas/f1e3c29d1f75c67ead129445176c2fa9 to your computer and use it in GitHub Desktop.
Save jimlyas/f1e3c29d1f75c67ead129445176c2fa9 to your computer and use it in GitHub Desktop.
Release version Interceptor`
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