mgrzechocinski
07/13/2018, 7:11 PMThe dependency injection API has been reviewed to allow you to use destructured declaration directly, without forcing you to use a Map of valueSeems like I missed paranthesis in lambda arg. This compiles:
factory { (activity: FragmentActivity) -> PermissionManager(activity) }
@arnaud.giuliani Isn’t it missing in the docs example as well: https://beta.insert-koin.io/docs/1.0/documentation/reference/index.html#_injection_parameters?
val myModule = module {
single{ view : View -> Presenter(view) } // should be: single{ (view : View) -> Presenter(view) }
}
arnaud.giuliani
07/20/2018, 7:13 AMarnaud.giuliani
07/20/2018, 7:16 AM