:rotating_light: New feature :rotating_light: What...
# koin
a
🚨 New feature 🚨 What do you think about exposing Activity & Fragment directly into the Koin, automatically?
Copy code
val androidModule = module {
    // a simple presenter, depending an injected Activity
    factory { (activity : Activity) -> Presenter(activity) }
}
with just a “standard” inject:
Copy code
class DetailActivity : AppCompatActivity() {

    // Lazy injected Presenter instance
    override val presenter : Presenter by inject()