nickbutcher / plaid

An Android app which provides design news & inspiration as well as being an example of implementing material design.
Apache License 2.0
16.26k stars 3.16k forks source link

Violation of the Dependency Rule principle #867

Open Yeroshin opened 1 year ago

Yeroshin commented 1 year ago

The domain layer violates the Dependency Rule and imports classes from the data layer. The Dependency Rule tells us that the inner layers should not depend on the outer ones and allows us to build systems that will be easier to maintain, because changes in the outer layers will not affect the inner layers.