-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathbuild.gradle
96 lines (77 loc) · 2.31 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
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext.kotlin_version = '1.4.10'
repositories {
jcenter()
google()
maven { url 'https://maven.fabric.io/public' }
}
dependencies {
classpath 'com.android.tools.build:gradle:4.1.0'
classpath 'com.google.gms:google-services:4.3.4'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
allprojects {
repositories {
jcenter()
google()
maven { url 'https://maven.google.com' }
maven { url 'https://clojars.org/repo/' }
maven { url 'https://jitpack.io' }
maven { url 'https://oss.sonatype.org/content/repositories/snapshots' }
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
ext {
// Sdk and tools
minSdkVersion = 26
targetSdkVersion = 30
compileSdkVersion = 30
buildToolsVersion = '29.0.2'
daggerVersion = "2.27"
supportVersion = "28.0.0"
rxJavaVersion = "2.2.17"
rxAndroidVersion = "2.1.1"
shockUtilVersion = "6.1.2"
shockbytesCoreVersion = "0.3.3.1"
firebaseVersionDatabase = "19.5.1"
firebaseVersionConfig = "20.0.0"
firebaseVersionCore = "18.0.0"
firebaseVersionAuth = "20.0.0"
rxBindingsVersion = "2.2.0"
firebaseUIVersion = "6.4.0"
playServicesVersionAuth = "18.1.0"
playServicesVersionLocation = "17.1.0"
playServicesVersionMaps = "17.0.0"
playServicesVersionWearable = "17.0.0"
playServicesVersionFitness = "20.0.0"
archVersion = "1.1.1"
crashlyticsVersion = "2.10.1"
workVersion = '2.5.0-beta01'
glideVersion = "4.11.0"
retrofitVersion = "2.9.0"
wearableVersion = "2.8.1"
jodaVersion = "2.10.6.2"
}
// -------------------- ktlint --------------------
configurations {
ktlint
}
dependencies {
ktlint "com.github.shyiko:ktlint:0.31.0"
}
task ktlint(type: JavaExec, group: "verification") {
description = "Check Kotlin code style."
classpath = configurations.ktlint
main = "com.github.shyiko.ktlint.Main"
args "*.kt"
}
task ktlintFormat(type: JavaExec, group: "kotlin Formatting") {
description = 'Fix Kotlin code style deviations.'
classpath = configurations.ktlint
main = 'com.github.shyiko.ktlint.Main'
args '-F', '*.kt'
}