Skip to content

Latest commit

 

History

History
34 lines (24 loc) · 1.32 KB

README.md

File metadata and controls

34 lines (24 loc) · 1.32 KB

Sample App with Clean Architecture

Detekt Unit Tests codecov

Sample app that represents clean architecture and integration with tools.

Setup

Make sure to have these keys on your local.properties file:

keystoreFilePath=PATH/TO/KEYSTORE
keystorePassword=KEYSTORE_PASSWORD
keyAlias=KEY_ALIAS
keyPassword=KEY_PASSWORD
firebaseAppId=APP_ID
serviceCredentialsJsonPath=PATH/TO/JSON

Separation of layers

Data

From DAOs to Repositories, this module is responsible for accessing and writing data considering the different data sources, such as REST APIs, local databases or local persistance for key-value pairs.

Domain

This layer is responsible for holding all the business logic and prepare the data making it usable for specific use cases.

UI

This is the module which is in charge of handling and displaying screens to users. Responsible for holding features, resources, and UI components.

App

This is the app module. It is responsible for navigation, configuration and any other Android-specific components.