Ostrenkiy / clean-architecture-templates

Set of templates for Android Studio with CLEAN architecture

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

clean-architecture-templates

Set of templates for Android Studio to work with feature based CLEAN architecture

Plugin page in marketplace

Installation

Install plugin from marketplace or by downloading plugin file and installing manually. After installation import plugins by pressing button in following notification.

Usage

Templates could be found under Clean Architecture category in new file menu.

Root package

Each template has Root package parameter that should be equal to parent package of layer packages. For example Root package for following package structure is org.stepik.android.

Order of layers

Generally order of layers creation is not crucial but to avoid issues with imports it is recommended to follow dependency graph of layers. So recommended order is following:

  1. domain
  2. data
  3. cache
  4. remote
  5. presentation
  6. injection
  7. view

clean-architecture-templates RU

Установка

Установите плагин из репозитория JetBrains либо вручную, скачав zip архив. После установки необходимо импортировать новые шаблоны, нажав на кнопку на уведомлении.

Использвание

Шаблоны могут быть найдены в категории Clean Architecture в меню создания нового файла.

Root package

Каждый шаблон имеет параметр Root package, который должен быть равен родителю пакетов слоёв. Например для следующей структуры пакетов Root package должен быть равен org.stepik.android.

Порядок создания слоев

В общем, порядок создания слоёв не является критичным, однако для избежания проблем с импортами рекомендуется придерживаться порядка, заданного графом зависимостей между слоями. Таким образом рекомендованный порядок следующий:

  1. domain
  2. data
  3. cache
  4. remote
  5. presentation
  6. injection
  7. view

About

Set of templates for Android Studio with CLEAN architecture


Languages

Language:FreeMarker 87.7%Language:Kotlin 12.3%