I have a library that I use in other plugins on my...
# koin
l
I have a library that I use in other plugins on my server (all the plugins are loaded into the same environment). It provides the Koin dependency to other plugins with an
api()
dependency in the buildscript. When I have multiple plugins calling
startKoin
, I get a
KoinAppAlreadyStartedException
. Can I give each plugin its own Koin application without having to shade the library into each plugin that uses it? I'd like to minimize the plugin sizes so shading Koin into each one is not ideal.
p
Have you tried Context Isolation am not 100% aware of what you are trying to do. But when you mention library and multiple starting something isn't correct on your setup. https://insert-koin.io/docs/reference/koin-core/context-isolation
☝️ 1