android10 / android10/Android-CleanArchitecture

How about Realm?

未關閉
#122 11 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
discussion question
主要語言
Java
星號
15.5k
分支
3.3k
PR 合併指標
30 天內沒有已合併 PR

描述

I was just wondering to know your thoughts about the best way to implement [Realm](https://github.com/realm/realm-java) Entities.

Realm needs the Android Framework, so I cannot have Realm objects in the Domain Layer, so I'm thinking to create other Realm Entities in the Data Layer and then map Domain objects to Realm objects. Does it make sense?

Also, the Repository Interface must return Observables Realm Entities, because I could retrieve data from the Realm database if the cache is not expired. Can I move the Repository Interfaces to the Data Layer?

Thanks.

貢獻指南

這個儲存庫沒有索引到貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。