Skip to main content

Structure

This is the directory structure of the blueprint

--- Constants
--- Models
------ Request
------ Response
--- Modules
------ Base
------ Core
------ Main
--- Networks
------ Api
------ Repository
------ Services
--- Utils

Constants

This folder contains the constant class in the application. Preferably using an existing file.

Models

Contains the models class used in the application which is divided into 2 folders, Request and Response.

Request

Models data class when requesting to API.

Response

Models data class when getting response from API.

Modules

This folder contains the main modules in the application which are divided into 3 folders such as Base, Core, and Main.

Base

This folder contains Base Class that is used for an Activity or Fragment.

Core

This folder contains modules Before the user enters the application, such as Login page, Register page, and Forgot Password page.

Main

This folder contains modules After the user enters the application such as Home page, Profile page.

Networks

API

This folder contains API Interfaces and Interceptors for HTTP Requests.

Repository

This folder contains Repository class for communicate between ViewModel and Interface to call API.

Services

This folder contains Services used by applications such as FirebaseMessaging, Retrofit, and 'Shared Preference'.

Utils

This folder contains Utility class or Helper class.