ground-android
ground-android copied to clipboard
[Code health] Improve directory structure as per clean architechture
- [ ] Create a new
presentationlayer to contain all screen and ui related classes - [ ] Move
usecasestodomainpackage - [ ] Within each screen, use
componentssubpackage for storing various composables
Final structure:
- common ✅
- data ✅
-
- local ✅
-
- remote ✅
-
- repository
- di (for storing app level modules only)
- domain
-
- model
-
- repository
-
- use_case
- presentation
-
- home
-
- settings
-
- data collection
-
- ....
-
- ui
-
-
- theme
-
-
-
-
- Color
-
-
-
-
-
- Theme
-
-
-
- MainActivity
-
- MainViewModel
- Ground Application ✅
View Models should delegate the business logic for user interactions (e.g. GetSurveys) to domain layer use_cases.