ground-android icon indicating copy to clipboard operation
ground-android copied to clipboard

[Code health] Improve directory structure as per clean architechture

Open shobhitagarwal1612 opened this issue 5 months ago • 0 comments

  • [ ] Create a new presentation layer to contain all screen and ui related classes
  • [ ] Move usecases to domain package
  • [ ] Within each screen, use components subpackage 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.

shobhitagarwal1612 avatar Jul 17 '25 20:07 shobhitagarwal1612