-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
145 lines (115 loc) · 3.49 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
/*
* Copyright 2019 Kaushik N. Sanji
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
// Map of plugin and dependency versions
ext.versions = [:]
// Plugin versions
versions.kotlin_plugin = '1.5.21'
versions.gradle_plugin = '4.2.1'
// Sdk and Tools
versions.min_sdk = 21
versions.target_sdk = 30
versions.compile_sdk = 30
// AppCompat
versions.appcompat = '1.3.0'
// Core
versions.core = '1.6.0'
// Activity
versions.activity = '1.2.3'
// Fragment
versions.fragment = '1.3.5'
// Material
versions.material = '1.4.0'
// ConstraintLayout
versions.constraintlayout = '2.0.4'
// RecyclerView
versions.recyclerview = '1.2.1'
// CardView
versions.cardview = '1.0.0'
// Lifecycle
versions.lifecycle = '2.3.1'
// ReactiveX
versions.rxjava = '3.0.13'
versions.rxandroid = '3.0.0'
// Image
versions.glide = '4.12.0'
// ParaCamera for capturing Images
versions.paracamera = '0.2.2'
// PhotoView for viewing Photos
versions.photoview = '2.0.0'
// JSON de/serializer using Gson
versions.gson = '2.8.7'
// Logger
versions.timber = '4.7.1'
// Database
versions.room = '2.3.0'
// Database Debugging
versions.debug_db = '1.0.6'
// Networking
versions.retrofit = '2.9.0'
versions.okhttp = '4.9.1'
versions.retrofit_rxjava_adapter = '2.9.0'
// Dagger
versions.dagger = '2.37'
// Testing
versions.junit = '4.13.2'
versions.espresso = '3.3.0'
versions.mockito = '3.11.2'
versions.core_testing = '1.1.1'
versions.test_runner = '1.4.0'
versions.test_ext_junit = '1.1.3'
versions.hamcrest = '2.2'
versions.fragment_testing = '1.3.5'
versions.truth = '1.1.3'
versions.test_ext_truth = '1.4.0'
repositories {
google()
mavenCentral()
jcenter()
}
dependencies {
classpath "com.android.tools.build:gradle:$versions.gradle_plugin"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$versions.kotlin_plugin"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
google()
mavenCentral()
jcenter()
maven { url "https://jitpack.io" }
}
gradle.projectsEvaluated {
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).configureEach {
kotlinOptions {
// For detecting deprecated usages
freeCompilerArgs += "-Xjavac-arguments=['-Xlint:deprecation']"
}
}
}
}
ext {
// Query git for the commit count, to automate versioning
gitCommitCount = Integer.parseInt(
'git rev-list --count HEAD'.execute([], project.rootDir).text.trim()
)
}
task clean(type: Delete) {
delete rootProject.buildDir
}