Skip to content

Files

Latest commit

dc90b1f · May 12, 2021

History

History
58 lines (39 loc) · 1.27 KB

README.md

File metadata and controls

58 lines (39 loc) · 1.27 KB

AutolibDZ onboard computer

General project structure

  • data

    • api
    • model
    • repositories
  • ui

    • adapter
    • view
    • viewmodel
  • utils

Packages details

  • 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
  • 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.