Skip to content

Everything depends on common module #4

@AradiPatrik

Description

@AradiPatrik

Hey @Morfly !
I loved your presentation on Android Worldwide. I love how every dependency is so well scoped and the modules are loosely coupled.

The only problem I can see right now is that literally every module depends on common. I feel like when we have a new feature request we will introduce new Repositories and new domain models, but the repository and the models will only be really used in one or two feature modules.

Because the repositories and the domain models all live under the common module, every change to them will recompile the entire app, right? If so do you think it would be a good idea to separate the common modules based on the domain models, eg:

banking app

  • transactions module with Transaction domain model and TransactionRepository
  • user module with User domain model and UserRepository.

These modules could work like common, but only those modules would depend on them that really need the models and repositories.

Does this make sense, or would this be unnecessary?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions