Reputation: 77
So I was going through clean architecture in android, really liked it how people even create separate projects for domain, data and presentation layer. I tried to create my own project for clean architecture but couldn't set up different projects for domain, data and presentation layers.
How can I accomplish this kind of project architecture? https://github.com/android10/Android-CleanArchitecture
Upvotes: 0
Views: 1173
Reputation: 2595
Create one project as your main project of type Android Application Project. The separate layers can be added as library modules to your main project.
Then you just need to add these library modules to your gradle file as dependencies. Android studio will usually take care of that. But just in case you needed to change the order of dependencies, you can do that in the gradle files of each module.
Upvotes: 2