Skip to content
This repository was archived by the owner on Jul 15, 2023. It is now read-only.

Commit 66eab22

Browse files
author
MishkaV
committed
Merge branch 'develop' into prod
2 parents 7eb654a + 9267c31 commit 66eab22

File tree

119 files changed

+2001
-330
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

119 files changed

+2001
-330
lines changed

.ci/.gitlab-ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ build-app:
9191
image: openjdk:11-jdk
9292
extends: .before_script_template
9393
rules:
94-
- when: always
94+
- when: never
9595
tags:
9696
- docker_miem
9797
script:

.detekt/detekt-config.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ complexity:
141141
ignoreArgumentsMatchingNames: false
142142
NestedBlockDepth:
143143
active: true
144-
threshold: 4
144+
threshold: 5
145145
NestedScopeFunctions:
146146
active: false
147147
threshold: 1
@@ -344,10 +344,10 @@ naming:
344344
active: false
345345
parameterPattern: '[a-z][A-Za-z0-9]*|_'
346346
MatchingDeclarationName:
347-
active: true
347+
active: false
348348
mustBeFirst: true
349349
MemberNameEqualsClassName:
350-
active: true
350+
active: false
351351
ignoreOverridden: true
352352
NoNameShadowing:
353353
active: true
@@ -769,7 +769,7 @@ formatting:
769769
active: true
770770
autoCorrect: true
771771
Filename:
772-
active: true
772+
active: false
773773
FinalNewline:
774774
active: true
775775
autoCorrect: true

README.md

Lines changed: 24 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,31 @@
1-
# OdooApp-Android
1+
# OdooApp
22

3+
<a href=''><img alt='Get it on Google Play' src='https://play.google.com/intl/en_us/badges/static/images/badges/en_badge_web_generic.png' width=300/></a>
34

4-
## Описание
5-
> Приложение мобильный клиент Odoo для платформы Android
5+
## Description
6+
> This is **unofficial** [Odoo](https://www.odoo.com/) mobile client for Android with [HSE](https://www.hse.ru/en/) support. Enjoy!
67
7-
## Общая структура проекта
8-
- [buildSrc](buildSrc/) - модуль, предназначенный для хранения всех gradle зависимостей, для дальнейшего поделючения во всех остальных модулях
9-
- [common](common/) - модуль, который содержит в себе функциональный куски кода, которые в дальнейшем можно переиспользовать
10-
- [.ci](.ci/) - инкапсуляция конфигов для ci/cd
11-
- [core](core/) - модуль компонентов, которые используются в других модулях проекта
12-
- [.detekt](.detekt/) - конфиги для `detekt` на ci
13-
- [entry](entry/) - модуль для входных точек в приложение
14-
- [feature](feature/) - модуль, который будет описывать логику фичей (например, авторизация)
8+
## Features
9+
- Authorization
10+
- General
11+
- HSE
12+
- Selecting modules, pick your favorite
13+
- Recruitment module `coming soon!`
14+
- CRM module `coming soon!`
15+
- Profile `coming soon!`
1516

16-
## Git flow
17-
Есть несколько основных веток
17+
## Example of screens
18+
<img src="documentation/screenshots/Authorization_light.webp" width=300/> <img src="documentation/screenshots/Authorization_dark.webp" width=300/>
1819

19-
- prod - стабильная ветка релизов
20-
- develop - ветка активной разработки, checkout от prod
21-
- Различные ветки фичей/багфиксов (соостветсвенно по названиям `feature/some_description` и `bugfix/some_description`)
20+
## Stack
21+
- Kotlin
22+
- Jetpack Compose
23+
- RxJava
24+
- Clean Architecture + MVVM
25+
- And other interesting staff
2226

23-
В конце каждого спринта будет релиз:
24-
- Доливаем все доработки в prod
25-
- Обновляем github
27+
## Are you a developer?
28+
Check [README](documentation/README.md) for developers
2629

27-
## Договоренности
28-
- Комментарии пишем на **русском**
29-
- Разделяем по возможности на **api** **impl**, для разделения методов наружу и их реализацией соответсвенно
30-
- Naming модулей через **camelCase**. Пример - `buildSrc`
31-
- Naming различных реализаций `impl` через *snake_case*, чтобы четко можно выделить особенносить
32-
конректной реализации. Пример:
33-
```
34-
login/
35-
api/
36-
impl/
37-
impl_hse/
38-
impl_google/
39-
```
40-
- Документация в api модулях очень приветсвуется, как и логгирование
41-
- Naming пакетов должен быть следующим:
42-
`odoo.miem.android.{feature/common/core}.{название модуля}.{api/impl}`
43-
- api/impl - опционально, если присутсвует
44-
- Не касаеися `entry/*` модулей, так как там содержиться базовый путь `odoo.miem.android`
45-
- Пример: `odoo.miem.android.core.di.impl`
46-
47-
## Как добавить новую gradle зависимость? Что такое модуль buildSrc и зачем он нужен?
48-
В модуле [buildSrc](buildSrc/) в файле [Dependencies](buildSrc/src/main/kotlin/consts/Dependencies.kt)
49-
прописаны все gradle зависимости, при необходимости добавляем/обновляем зависимости именно там.
50-
Подробнее об модуле [buildSrc](buildSrc/) можно почитать в соответсвующем [README.md](buildSrc/README.md)
51-
52-
## Как подключить модуль к общему DI графу?
53-
Побробнее об этом можно прочитать в соответсвующем [README](core/di/README.md)
30+
## Download
31+
Stable release coming soon, keep in touch \(^▽^)/

build.gradle.kts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@ plugins {
88

99
buildscript {
1010
dependencies {
11-
Dependencies.Firebase.ALL_GRADLE_PLUGINS.forEach {
12-
classpath(it)
13-
}
11+
Dependencies.Firebase.GRADLE_PLUGINS.forEach { classpath(it) }
1412
}
1513
}
1614

buildSrc/README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
11
# BuildSrc модуль
22

3-
## Назначение
4-
Данный модуль предназначен для хранения зависимостей и их версий
3+
## Appointment
4+
This module is designed to store dependencies and their versions
55

66
## Описание
7-
Сам модуль имеет следующие разделение:
7+
The module itself has the following divisions:
88
- [const](buildSrc/src/main/kotlin/consts)
99
- [CompileVersions](buildSrc/src/main/kotlin/consts/CompileVersions.kt) -
10-
нужен для выделения версии сборки проекта
10+
needed to highlight the build version of the project
1111
- [Dependecies](buildSrc/src/main/kotlin/consts/Dependecies.kt) -
12-
содержит все нужные версии и зависимости
12+
contains all the necessary versions and dependencies
1313
- [conventions](buildSrc/src/main/kotlin/conventions)
1414
- [base](buildSrc/src/main/kotlin/conventions/base) -
15-
базовые конвенции, которые содержать первоначальные настройки
15+
basic conventions that contain the initial settings
1616
- [module](buildSrc/src/main/kotlin/conventions/module) -
17-
конвенции, которые расширяют базовые конвенции минималлного уровня использования
18-
- [module_extended](buildSrc/src/main/kotlin/conventions/module_extended) -
19-
специфичные конвенции, которые расширяют конвенции из [module](buildSrc/src/main/kotlin/conventions/module)
17+
conventions that extend the basic conventions of the minimum level of use
18+
- [module_extended](buildSrc/src/main/kotlin/conventions/module_extended) -
19+
specific conventions that extend conventions from [module](buildSrc/src/main/kotlin/conventions/module)
2020

21-
## Процесс расширения
21+
## The expansion process
2222
```
2323
base -------> module -------> module_advanced
2424

buildSrc/src/main/kotlin/consts/CompileVersions.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* [CompileVersions] нужен для хранения актуальных версий для сборки проекта
2+
* [CompileVersions] is needed for storing actual versions to build the project
33
*
44
* @author Ворожцов Михаил
55
* @since 09.10.2022

buildSrc/src/main/kotlin/consts/Dependencies.kt

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
/**
2-
* [Dependencies] предназначен для хранения всех зависимостей, которые нужны
3-
* в данном проекте
2+
* [Dependencies] is designed to store all the dependencies that are needed in this project
43
*
54
*
65
* @author Ворожцов Михаил
@@ -112,11 +111,14 @@ object Dependencies {
112111
object Accompanist {
113112
private const val VERSION = "0.28.0"
114113

115-
const val ACCOMPANIST_CORE = "com.google.accompanist:accompanist-pager:$VERSION"
114+
const val ACCOMPANIST_PAGER = "com.google.accompanist:accompanist-pager:$VERSION"
116115
const val ACCOMPANIST_INDICATORS =
117116
"com.google.accompanist:accompanist-pager-indicators:$VERSION"
118117

119-
val ALL_ACCOMPANIST_DEPS = listOf(ACCOMPANIST_CORE, ACCOMPANIST_INDICATORS)
118+
val ALL_ACCOMPANIST_DEPS = listOf(
119+
ACCOMPANIST_PAGER,
120+
ACCOMPANIST_INDICATORS
121+
)
120122
}
121123

122124
object SharedElements {
@@ -216,11 +218,14 @@ object Dependencies {
216218
const val FIREBASE_BOM = "com.google.firebase:firebase-bom:$BOM_VERSION"
217219
const val FIREBASE_ANALYTICS = "com.google.firebase:firebase-analytics-ktx"
218220
const val FIREBASE_CRASHLYTICS = "com.google.firebase:firebase-crashlytics-ktx"
221+
const val FIREBASE_CONFIG = "com.google.firebase:firebase-config-ktx"
219222

220-
val ALL_GRADLE_PLUGINS =
223+
val GRADLE_PLUGINS =
221224
listOf(GOOGLE_SERVICES_GRADLE_PLUGIN, FIREBASE_CRASHLYTICS_GRADLE_PLUGIN)
222225

223-
val ALL_DEPS = listOf(FIREBASE_ANALYTICS, FIREBASE_CRASHLYTICS)
226+
val APPLICATION_DEPS = listOf(FIREBASE_ANALYTICS, FIREBASE_CRASHLYTICS)
227+
228+
val MODULE_DEPS = listOf(FIREBASE_ANALYTICS, FIREBASE_CONFIG)
224229
}
225230

226231
object Plugins {

buildSrc/src/main/kotlin/conventions/base/conventions.base-api.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ import org.gradle.kotlin.dsl.withType
22
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
33

44
/**
5-
* Базовая конвенция для api модулей
5+
* Basic convention for api modules
66
*
7-
* @author Ворожцов Михаил
7+
* @author Vorozhtsov Mikhail
88
* @since 09.10.2022
99
*/
1010
plugins {

buildSrc/src/main/kotlin/conventions/base/conventions.base-app.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
22

33
/**
4-
* Базовая конвенция для app модулей
4+
* Basic convention for app modules
55
*
6-
* @author Ворожцов Михаил
6+
* @author Vorozhtsov Mikhail
77
* @since 09.10.2022
88
*/
99
plugins {

buildSrc/src/main/kotlin/conventions/base/conventions.base-impl.gradle.kts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ import org.gradle.kotlin.dsl.withType
33
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
44

55
/**
6-
* Базовая конвенция для api модулей, которая не содержит
7-
* подключаемые завивисимости
6+
* Basic conventions for api modules which doesn't contains
7+
* pluggable dependencies
88
*
9-
* @author Ворожцов Михаил
9+
* @author Vorozhtsov Mikhail
1010
* @since 15.09.2022
1111
*/
1212
plugins {

0 commit comments

Comments
 (0)