Can you use destructured declarations, something l...
# kodein
j
Can you use destructured declarations, something like this (but not this since it doesn’t compile 🙂):
Copy code
bind<OkHttpClient>() with factory { (socketFactory, standardHeaderInterceptor) ->
            OkHttpClient
                .Builder()
                .socketFactory(socketFactory)
                .addInterceptor(standardHeaderInterceptor)
                .addInterceptor(instance<ICrashlyticsLoggingInterceptor>())
                .addInterceptor(instance<HttpLoggingInterceptor>())
                .build()
        }