You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Having a KMP/compose multiplatform Project (mainly Android&Desktop) and need to scope(koin) my ScreenModel for Android-Lifecycle Reasons (in particular I am injecting a class that requires an activity to call and Android-API). In order to inject the screenmodel now, I have 2 different implementations of the screen, for Android & Desktop (no need for the scope on desktop).
Is there a way I can avoid the Android specific implementation? (prefered)
Is there a way I can use getScreenModel on a scope? I read about navigation scoped screenmodels can this help somehow?
In ideal case the only difference between the platform implementations is the DI setup (sadly, I don't get rid of the scope on android => ideas are welcome, even though they don't belong here)
The text was updated successfully, but these errors were encountered:
andretietz
changed the title
KoinIntegration: getting scoped ScreenModel
Koin-Integration: getting scoped ScreenModel
May 2, 2024
I am struggeling with following problem:
Having a KMP/compose multiplatform Project (mainly Android&Desktop) and need to scope(koin) my ScreenModel for Android-Lifecycle Reasons (in particular I am injecting a class that requires an activity to call and Android-API). In order to inject the screenmodel now, I have 2 different implementations of the screen, for Android & Desktop (no need for the scope on desktop).
Implementation on desktop:
Implementation for Android:
My questions:
getScreenModel
on a scope? I read about navigation scoped screenmodels can this help somehow?In ideal case the only difference between the platform implementations is the DI setup (sadly, I don't get rid of the scope on android => ideas are welcome, even though they don't belong here)
The text was updated successfully, but these errors were encountered: