android10 / android10/Android-CleanArchitecture

How about Realm?

オープン
#122 コメント 11 件 リアクション 0 件 担当者 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 を短くまとめたダイジェスト。