Hey i am using `koin 2.2.2` whenerver i used any ...
# koin
v
Hey i am using
koin 2.2.2
whenerver i used any object class and inject through koin and used that object class in any other class like view holder it gives warning. How to avoid this warning
🙌 1
b
Your ViewHolder has @KoinApi annotation + extends KoinComponent ? That’s the only way (beside adding suppressWarning)
a
yes, this breaking has been reworked in 3.x
v
@bastienC Yes I extend KoinComponent, but i don't want to add @KoinApi annotations.
@arnaud.giuliani i need to update latest one to avoid for that?
b
Then you should use supressWarning (with your version)
v
okk
a
it was a “compile marker” to avoid external use of Koin API
From 3.x, it’s not used anymore. KoinComponent is clear again
that’s why it’s a problem of 2.2.2 that introduced breakings
v
okk great than, i need to update to latest one
a
if you can, that’s better 👍