I try to update Koin from `3.5.6` to `4.0.0-RC1` (...
# koin
p
I try to update Koin from
3.5.6
to
4.0.0-RC1
(for validation purposes) in a project. But I got an error in compile time related to
androidx.core.hardware.fingerprint.FingerprintManagerCompat.AuthenticationCallback
. The error is
e: file:///Users/my_user/Documents/xpto/yz/project/core-auth/src/main/java/x/x/x/x/x/x/x/authmanager/domain/AuthManagerImpl.kt:221:5 'onAuthenticationSucceeded' overrides nothing
. How can I avoid it?
🏋️ 1
z
It seems you're using a transitive dependency from Koin which got updated in 4.0.0-RC1. You need to check the new contract for the method you're trying to override. It could be that the parameters have changed (type or even amount), return type
If for some reason you can't really use the newer transitive version that comes in Koin, then you could add a constraint in your build.gradle file so that you force the older version
This seems to be the latest contract. Maybe you're expecting this parameter (
result
) to be nullable, which is not the case anymore
p
Thank you. I managed to work around this transitive dependency. And yes, was supporting the new one. That's not desired, but it worked as well. 🙃 Is it possible to avoid "leak" the dependency, @arnaud.giuliani?
🙌 1
If no, I think we need to improve the docs as a requirement to use this version of koin.
a
Is it possible to avoid "leak" the dependency, @arnaud.giuliani?
it's an android dependency?
p
Yes. I think koin is transiting android X library.
a
yes