Skip to content

PLAN | Domain Layer & Use Case Implementation #27

Description

@alexistercero-rho-dev

Development plan for Domain Layer

This feature is part of the @Rho-Studio architecture standard for Android mobile apps.

As business logic complexity grows, direct ViewModel-to-Repository interaction is being transitioned to a dedicated Domain Layer.

  • Use Cases (Interactors): Classes like LoginUseCase.kt (core/domain/usecase/LoginUseCase.kt) encapsulate specific business rules, making the logic reusable across different ViewModels and testable in isolation.

  • Business Transaction Flow: A single user action (e.g., "Login") may involve multiple steps: credential validation -> token acquisition -> user profile synchronization. These are managed as atomic transactions within the Domain Layer.

Consider

  1. MVVM.
  2. Single-activity host.
  3. Jetpack compose.
  4. Compose Navigation.
  5. @Rho-Studio UI colors.

Rho.Studio® - Engineering Department - Contact alexis.tercero@rho.studio

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Domain layerUse cases of business flowModuleGradlew multi-module project

Projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions