https://kotlinlang.org logo
#kodein
Title
k

kristofdho

11/11/2017, 9:01 PM
Copy code
bind<TestApi>() with provider { 
    val factory = factory<String, Retrofit>()
    val retrofit = factory(url)
    retrofit.create(TestApi::class.java)
}