AndroidCleanArchitecture icon indicating copy to clipboard operation
AndroidCleanArchitecture copied to clipboard

Domain is not pure kotlin code

Open rakib-bk opened this issue 3 years ago • 1 comments

The domain class is using gson annotation. In clean architecture we write pure java/kotlin code in domain layer. The gson annotated class will remain in data layer and a mapper should be used to convert it from data layer to domain layer. Please correct me if I am wrong.

rakib-bk avatar Apr 06 '22 04:04 rakib-bk

You are correct, even the repository contains the 'PagingData' which is from the Android Paging Library itself.

HiImMatthewN avatar Sep 10 '22 14:09 HiImMatthewN