Hello folks, I upgraded the Koin version on my Jav...
# koin
c
Hello folks, I upgraded the Koin version on my Java Android app Java to v3.4.0 and now it I can't see the getSharedViewModel on my fragment, any idea how I can resolve this?
a
I am also trying to work around that. Accordingly to the documentation seems like
sharedViewModel
has been replaced with
activityViewModel
c
Yeah, but the new activityViewModel can’t be used in Java classes
a
hmmm well... not sure why are you still using Java but seems like a great time to make a change
z
I created an issue for it https://github.com/InsertKoinIO/koin/issues/1579 The @JvmStatic annotation was removed for some reason. You can workaround that by using
SharedViewModelCompat.INSTANCE.getSharedViewModel(...)