-
Notifications
You must be signed in to change notification settings - Fork 15
/
build.gradle
100 lines (93 loc) · 3.06 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
/*
* Copyright 2021 headuck (https://blog.headuck.com/)
*
* This file is part of GoOutWithDuck
*
* GoOutWithDuck is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* GoOutWithDuck is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GoOutWithDuck. If not, see <http://www.gnu.org/licenses/>.
*
*/
buildscript {
// Define versions in a single place
ext {
// Sdk and tools
compileSdkVersion = 30
minSdkVersion = 19
targetSdkVersion = 30
// App dependencies
appCompatVersion = '1.1.0'
assistedInjectVersion = '0.5.2'
constraintLayoutVersion = '2.0.4'
coreTestingVersion = '2.0.0'
coroutinesVersion = "1.4.1"
datastorePreferences = "1.0.0-alpha06"
dokkaVersion = '0.9.17'
espressoVersion = '3.1.1'
fragmentVersion = '1.2.5'
glideVersion = '4.10.0'
gradleVersion = '4.1.2'
gsonVersion = '2.8.6'
hiltVersion = '2.28.3-alpha'
hiltViewModelVersion = '1.0.0-alpha02'
junitVersion = '4.12'
kotlinVersion = '1.4.21'
ktlintVersion = '0.38.1'
ktxVersion = '1.3.2'
lifecycleVersion = '2.3.0-rc01'
materialVersion = '1.2.1'
multidex_version = '2.0.1'
navigationVersion = '2.3.3'
okhttpLoggingVersion = '3.12.13'
pagingVersion = '3.0.0-alpha13'
recyclerViewVersion = '1.2.0-beta01'
retrofitVersion = '2.9.0'
roomVersion = '2.3.0-beta01'
runnerVersion = '1.0.1'
truthVersion = '0.42'
testExtJunit = '1.1.0'
timberVersion = '4.7.1'
uiAutomatorVersion = '2.2.0'
viewPagerVersion = '1.0.0'
workVersion = '2.5.0'
}
repositories {
google()
jcenter()
mavenCentral()
}
dependencies {
classpath "com.android.tools.build:gradle:4.0.1"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
classpath "androidx.navigation:navigation-safe-args-gradle-plugin:$navigationVersion"
classpath "com.google.dagger:hilt-android-gradle-plugin:$hiltVersion"
classpath "org.jetbrains.kotlin:kotlin-serialization:$kotlinVersion"
classpath 'com.google.protobuf:protobuf-gradle-plugin:0.8.14'
classpath "org.jetbrains.dokka:dokka-android-gradle-plugin:$dokkaVersion"
}
}
plugins {
id "com.diffplug.spotless" version "5.2.0"
}
allprojects {
repositories {
google()
jcenter()
maven { url 'https://jitpack.io' }
}
}
spotless {
kotlin {
target "**/*.kt"
ktlint(ktlintVersion).userData(['max_line_length' : '100'])
}
}