👉 Recommendations for Android architecture | Android Developers
分かりやすいドキュメントなのでさらに分かりやすくなるように図にしてみます。
🤔 Layered Architecture
UI Layer
|
Coroutine
|
DataL Layer
|
Repository
👉 Layered architecture - Recommendations for Android architecture | Android Developers
(以下更新中...)
🤔 UI Layer
UI Layer
UDF
AAC ViewModel
Lifecycle
User Event
👉 UI layer - Recommendations for Android architecture | Android Developers
🤔 ViewModel
ViewModel
Depencencies
Coroutine Flow
State Holder
👉 ViewModel - Recommendations for Android architecture | Android Developers
🤔 Lifecycle
Lifecycle
LifecycleObserver
👉 Lifecycle - Recommendations for Android architecture | Android Developers
🤔 Handle dependencies
Constructor Injection
Container
👉 Handle dependencies - Recommendations for Android architecture | Android Developers
🤔 Test
ViewModel
Data Entity (Repository + DataSource)
FakeData
StateFlow
👉 Test - Recommendations for Android architecture | Android Developers
🤔 まとめ
以上の記事は現在更新中です。