rkeazor

    rkeazor

    1 year ago
    whats the best or recommended architecture for jetpact compose
    Sean McQuillan [G]

    Sean McQuillan [G]

    1 year ago
    The guide to app architecture remains our opinionated guidance for a common architecture for Android apps. You'll also find that any arch that follows unidirectional data flow works well with compose.
    Practically, in a hybrid app this usually means one Fragment per screen that holds a ViewModel. In a pure-compose app, the ViewModel will be hold by a screen-level composable.
    rkeazor

    rkeazor

    1 year ago
    Great, Thank you !
    Sean McQuillan [G]

    Sean McQuillan [G]

    1 year ago
    Note – you'll hit some rough edges right now in a pure compose app (navigation isn't shipped; there's no way to scope ViewModels yet).
    rkeazor

    rkeazor

    1 year ago
    Dagger hilt work with a pure Compose app?
    Colton Idle

    Colton Idle

    1 year ago
    Should be able to inject things into a fragment with hilt and so that should take care of any DI that you need for now?
    Davide Giuseppe Farella

    Davide Giuseppe Farella

    1 year ago
    The platform should be a detail, even more if we're talking about a specific tool. If it's the core of the architecture, that's a no-architecture