-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathbuild.gradle
More file actions
100 lines (82 loc) · 2.5 KB
/
Copy pathbuild.gradle
File metadata and controls
100 lines (82 loc) · 2.5 KB
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
// Top-level build file where you can add configuration options common to all sub-projects/modules.
def ktlintVersion = "0.40.0"
buildscript {
def realmVersion = "10.16.1"
ext.kotlin_version = '1.8.22'
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:8.1.1'
classpath 'com.google.gms:google-services:4.4.0'
classpath "io.realm:realm-gradle-plugin:$realmVersion"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath 'com.google.firebase:firebase-crashlytics-gradle:2.9.9'
}
}
allprojects {
repositories {
google()
jcenter()
mavenCentral()
maven { url "https://clojars.org/repo/" }
maven { url "https://maven.google.com" }
maven { url 'https://jitpack.io' }
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
ext {
archXVersion = '2.3.1'
androidXVersion = '1.0.0'
androidXCoreVersion = '1.7.0'
androidXPreferenceVersion = '1.1.1'
androidXAppCompatVersion = '1.1.0'
materialVersion = '1.3.0'
rxJavaVersion = "2.2.20"
rxAndroidVersion = "2.1.1"
rxBindingsVersion = "2.2.0"
firebaseVersionConfig = "20.0.4"
firebaseVersionAuth = "20.0.4"
firebaseMLVision = "24.0.3"
firebaseAnalyticsVersion = "18.0.3"
firebaseCrashlyticsVersion = "17.4.1"
firebaseStorageVersion = "19.2.2"
playServicesVersionVision = "20.1.3"
playServicesVersionAuth = "19.0.0"
daggerVersion = "2.48"
retrofitVersion = "2.9.0"
okHttpVersion = "4.9.0"
leakCanaryVersion = "2.2"
shockUtilVersion = "6.1.2"
crashlyticsVersion = "2.10.1"
glideVersion = "4.11.0"
lottieVersion = "3.0.1"
rxKotlinVersion = "2.3.0"
cameraXVersion = "1.0.0-beta11"
cameraXExtensionVersion = "1.0.0-alpha18"
jodaTimeVersion = "2.10.7.2"
timberVersion = "4.7.1"
materialDialogsVersion = "3.3.0"
}
// -------------------- ktlint --------------------
configurations {
ktlint
}
dependencies {
ktlint "com.pinterest:ktlint:$ktlintVersion"
}
task ktlint(type: JavaExec, group: "verification") {
description = "Check Kotlin code style."
classpath = configurations.ktlint
main = "com.pinterest.ktlint.Main"
args "src/**/*.kt"
}
task ktlintFormat(type: JavaExec, group: "formatting") {
description = "Fix Kotlin code style deviations."
classpath = configurations.ktlint
main = "com.pinterest.ktlint.Main"
args "-F", "src/**/*.kt"
}