Skip to content

Latest commit

 

History

History
57 lines (52 loc) · 1.61 KB

code-style.md

File metadata and controls

57 lines (52 loc) · 1.61 KB

Code style

Code style file is located here.

How To install

  1. Download file funstasty_code_style.xml
  2. In Android Studio: Settings (CMD + ,) > Editor > Code Style > Scheme
  3. Press ⚙️ icon, select Import scheme and pick downloaded file
  4. Press Apply

Project structure

Every project should respect following file and package hierarchy:

project-android
|-- app
|   |-- src/main/
|   |   |-- kotlin/com/example
|   |   |   |-- data  
|   |   |   |   |-- database
|   |   |   |   |   `-- AppDatabase.kt
|   |   |   |   |-- model
|   |   |   |   |   `-- User.kt
|   |   |   |   |-- remote
|   |   |   |   |   `-- RetrofitService.kt
|   |   |   |   `-- store
|   |   |   |       `-- UserStore.kt
|   |   |   |-- domain
|   |   |   |   `-- feature/FeatureInteractor.kt
|   |   |   |-- injection  
|   |   |   |   |-- module
|   |   |   |   |   |-- ActivityBuilderModule.kt
|   |   |   |   |   `-- ApplicationModule.kt
|   |   |   |   `-- component
|   |   |   |       `-- ApplicationComponent.kt
|   |   |   |-- tools/constant/Constants.kt
|   |   |   |-- ui 
|   |   |   |   |-- base/BaseActivity.kt
|   |   |   |   `-- main
|   |   |   |       |-- MainActivity.kt
|   |   |   |       |-- MainActivityModule.kt
|   |   |   |       |-- MainView.kt
|   |   |   |       |-- MainViewModel.kt
|   |   |   |       |-- MainViewModelFactory.kt
|   |   |   |       `-- MainViewState.kt
|   |   |   `-- App.kt 
|   |   `-- res/layout/activity_main.xml 
|-- keystore
|   |-- debug.jks
|   |-- client.jks
|   `-- release.jks
|-- .gitignore
|-- .editorconfig
|-- Dangerfile
|-- detekt.yml