how to start koin , when it requires fun? <https:/...
# announcements
c
how to start koin , when it requires fun? https://pastebin.com/PUHaf1Tu startkoin can't start without function 😞
m
You can't start anything without a function. The top-level can only have declarations.
c
cant have companion function calling startkoin , cant make huge change for this injection.
if i need to convert object client to class client
m
I don't understand since I don't use koin. You would typically initialize your object graph in the entry point of your application. For simple apps, that's the
main
function of the main class of your project. App frameworks usually provide callbacks when it starts calling your code, like
Activity#onCreate
in Android.
c
the entry point is different submodule