-
data
- api
- model
- repositories
-
ui
- adapter
- view
- viewmodel
-
utils
-
data (All data and business logic related files should go in here:)
- api (Check the example of Sayara to better understand the use of these files as well as other parts of the architecture)
- ServiceBuilder.kt
- ServiceProvider.kt
- Api.kt
- model
- repositories
- api (Check the example of Sayara to better understand the use of these files as well as other parts of the architecture)
-
ui (All UI related elements and their view models should go in here:)
- adapter
- view
- activity
- fragment
- viewmodel
-
utils (Contains constants, wrappers and functions which are a utility for the project.)
We are using Retrofit to consume the services:
Note that you should keep a coherent name system for your files. Example:
- SearchActivity.kt
- SearchViewModel.kt
- SearchAdapter.kt
- SearchRepository.kt
Please do not forget to check the coding conventions (charte de codage) before you start coding.