ah, ok. As described here (<https://medium.com/koi...
# koin
m
ah, ok. As described here (https://medium.com/koin-developers/opening-the-koin-1-0-0-beta-version-99cb8be1c308):
The dependency injection API has been reviewed to allow you to use destructured declaration directly, without forcing you to use a Map of value
Seems like I missed paranthesis in lambda arg. This compiles:
Copy code
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?
Copy code
val myModule = module {
    single{ view : View -> Presenter(view) } // should be: single{ (view : View) -> Presenter(view) }
}
a
Yes parenthesis are missings
You can open an issue to trace the problem from the doc