dropbox / kaiken

User scoping library for Android applications.
Apache License 2.0
69 stars 11 forks source link

AuthRequiredScope cannot access PresenterProvider #127

Closed viceversus closed 2 years ago

viceversus commented 2 years ago

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.