hi, is possible to use Koin in Android Library? if...
# koin
s
hi, is possible to use Koin in Android Library? if yes, when i should call startKoin?
m
yes, it's easy to use for android lib. You should initialize koin when you need your app initialized, that depends on your API.
additionally, I suggest using
koinApplication
builder instead of
startKoin
to avoid potential conflicts with apps using koin
👍 2
s
Thanks, if i use
koinApplication
then `startKoin`does not need to call from any where?
m
yes, but you'll need to store result of koinApplication and use it to get needed dependencies
s
Thank you so much 👍
e
@sajadgarshasbi here is the documentation link for the context isolation. https://insert-koin.io/docs/2.0/documentation/reference/index.html#_koin_context_isolation
👍 1