Please do not merge. This is very early stages of WIP. I ran into a problem where the retained.cast for AuthRequiredScope was failing because Presenter.PresenterProvider was only scoped to AuthOptional. I'm not that familiar with Anvil so I wasn't able to figure out a better solution than to dupe the Presenter. We're explicitly passing AuthOptionalScope or AuthRequiredScope, so I can't put it into a higher level scope. It probably doesn't belong there anyway. Maybe this could go in AuthAwareScope? I don't know the details of the domain well enough to make that call.
Please do not merge. This is very early stages of WIP. I ran into a problem where the
retained.cast
for AuthRequiredScope was failing becausePresenter.PresenterProvider
was only scoped toAuthOptional
. I'm not that familiar with Anvil so I wasn't able to figure out a better solution than to dupe the Presenter. We're explicitly passingAuthOptionalScope
orAuthRequiredScope
, so I can't put it into a higher level scope. It probably doesn't belong there anyway. Maybe this could go inAuthAwareScope
? I don't know the details of the domain well enough to make that call.