https://kotlinlang.org logo
Title
p

Pedro Francisco de Sousa Neto

05/18/2023, 2:23 PM
Is it possible to have a library with koin version minor than application? Scenario: Imagine Glide is using Koin in version 2.x. And my app is using Koin 3.x.
j

Jakub Syty

05/18/2023, 7:49 PM
You can use Shadow (https://imperceptiblethoughts.com/shadow/configuration/dependencies/) to hide your jar dependencies inside your library. This will embed the jar inside library, but it makes your library dependent only on that jar (i might not be describing this properly)
i think it does it by renaming packages internally to something different, but i'm not 100% positive
p

Pedro Francisco de Sousa Neto

05/24/2023, 5:58 PM
Is it safe do what I asked with shadow with Koin, @arnaud.giuliani?
a

arnaud.giuliani

05/25/2023, 7:59 AM
never tested such tricky case to be honest 🤷