android10 / Android-CleanArchitecture

This is a sample app that is part of a series of blog posts I have written about how to architect an android application using Uncle Bob's clean architecture approach.
Apache License 2.0
15.52k stars 3.32k forks source link

Library Dependencies Across Layers #163

Open StuStirling opened 8 years ago

StuStirling commented 8 years ago

I have a library module that I am reusing across multiple applications.

The library is composed of two modules. One android library module that depends on a java library module that contains my domain logic.

Then in the project that I depend on this library I have split into the three modules used in the Android-CleanArchitecture application.

My questions is:

How do I use objects from the domain module from my android library in the main project's domain module? At the moment I would have to convert the main project's domain module to an android library module.

At the moment, in the Android-CleanArchitecture application, it doesn't really use any reusable modules so I couldn't see how this would be done.

android10 commented 8 years ago

Maybe you should go for One Module Clean Architecture approach. We have had discussions here, it is a PR and the idea is to not merge but keep it around: https://github.com/android10/Android-CleanArchitecture/pull/103