androidarchitecturemvpclean-architecture

Uncle Bob's clean architecture approach - what is recommended package structure?


I'd like to know if I'm using Clean Architecture the right way. I am trying to lay it like this diagram:

enter image description here

I've read that the package structure should be arranged by use case but I'm having difficulty following how that would be done.

Let's take a look at my package structure:

enter image description here notice I don't know where to really put the activities in the UI folder, could you recommend ? does it matter?

In the data folder, I have my repositories I use for repository design pattern. my retrofit network calls are on the same level as the UI folder. likewise for my dependency injection framework.

My concern comes after reading this publication I am now wondering if I did the package structure correctly?


Solution

  • I would suggest you have a look to this repository. You can have a lot of feedback from the discussions in the issues section. I'll would read specially this discussion.

    Now in orther to answer your question.