-
-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathbuild.gradle
149 lines (125 loc) · 4.48 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
buildscript {
ext {
//==============================================================================================
// Versions - Application
//==============================================================================================
KOTLIN_VERSION = '1.4.31'
KOTLIN_COROUTINES_CORE = '1.4.3'
ANDROID_BUILD_TOOLS = '4.1.2'
ANDROID_APCOMPACT = '1.2.0'
ANDROID_LIFECYCLE = '2.3.0'
ANDROID_LIFECYCLE_EXTENSION = '2.2.0'
VIEW_MATERIAL_DESIGN = '1.1.0'
VIEW_SWIPE_REFRESH = '1.2.0-alpha01'
VIEW_CONSTRAINT_LAYOUT = '2.0.4'
VIEW_RECYCLER_VIEW = '1.1.0'
GOOGLE_GSON = '2.8.6'
GOOGLE_ROOM = '2.2.6'
GOOGLE_NAVIGATION_VERSION = '2.3.4'
OKHTTP = '4.9.1'
KOIN = '2.2.2'
RETROFIT = '2.9.0'
TRUE_TIME = '3.4'
MCTECH_KEYBOARD = '1.0.6'
MCTECH_MVVM_ARCHITECTURE = '1.5.3'
MCTECH_ARCHITECTUER_GENERATOR = '2.0.0'
//==============================================================================================
// Versions - Tests
//==============================================================================================
JUNIT = '4.13.2'
ANDROID_CORE = '1.3.0'
ANDROID_RUNNER = '1.3.0'
ANDROID_ARCHITECTURE = '2.1.0'
NHAARMAN_MOCKITO = '2.1.0'
ROBOLETRIC = '4.5.1'
MOCKITO_INLINE = '3.8.0'
ASSERT_J = '3.19.0'
COROUTINES = '1.4.2-native-mt'
BARISTA = '3.9.0'
//==============================================================================================
// SUBMODULES
//==============================================================================================
submodulesPlatform = [
domain: ':domain',
data : ':data',
]
submodulesLibraries = [
networking : ':libraries:library-networking',
logger : ':libraries:library-logger',
loggerAndroid: ':libraries:library-logger-android',
designSystem : ':libraries:library-design-system',
chart : ':libraries:library-chart',
]
submodulesFeatures = [
stockShare : ':features:feature-stock-share',
stockShareFilter: ':features:feature-stock-share-filter',
timelineBalance : ':features:feature-timeline-balance',
]
submodulesTest = [
dataFactory: ':testing:testing-data-factory',
]
}
repositories {
google()
jcenter()
maven {
url 'https://plugins.gradle.org/m2/'
}
}
dependencies {
classpath "com.android.tools.build:gradle:$ANDROID_BUILD_TOOLS"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$KOTLIN_VERSION"
classpath "androidx.navigation:navigation-safe-args-gradle-plugin:$GOOGLE_NAVIGATION_VERSION"
classpath "com.vanniktech:gradle-android-junit-jacoco-plugin:0.16.0"
classpath 'com.adarshr:gradle-test-logger-plugin:2.1.1'
}
}
allprojects {
repositories {
google()
jcenter()
maven {
url "https://jitpack.io"
}
}
}
subprojects {
afterEvaluate { project ->
if (project.hasProperty('android')) {
android {
buildToolsVersion '29.0.2'
compileSdkVersion 29
defaultConfig {
minSdkVersion 21
targetSdkVersion 29
multiDexEnabled true
vectorDrawables.useSupportLibrary = true
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
compileOptions {
encoding "utf-8"
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
buildTypes {
release {
minifyEnabled false
}
debug {
minifyEnabled false
}
}
lintOptions {
abortOnError false
}
}
}
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
apply plugin: "com.vanniktech.android.junit.jacoco"
junitJacoco {
jacocoVersion = '0.8.5' // type String
}