-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
88 lines (77 loc) · 2.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
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext.kotlin_version = '1.4.21'
ext {
ktx = '1.5.0-beta01'
app_compat = '1.2.0'
google_material = '1.2.1'
constraint_layout = '2.0.4'
annotation = "1.1.0"
exif_interface = "1.1.0"
pallete = "1.0.0"
fragment = '1.2.5'
swipe_refresh = '1.1.0'
arch = "2.1.0"
view_pager = "1.0.0"
// Architecture
room = '2.3.0-alpha04'
lifecycle = '2.2.0'
paging = '3.0.0-alpha12'
navigation = '2.3.2'
// Dependency Injection
dagger = '2.28'
// Logs
timber = "4.7.1"
// Image
glide = '4.11.0'
lottie = '3.3.1'
// Networking
okhttp = '4.9.0'
retrofit = '2.9.0'
// Others
gson = '2.8.6'
// Build Versions
android_gradle_plugin = '4.1.0'
kotlinter = "3.0.2"
hilt_dagger = '2.31-alpha'
play_publisher = "3.1.0"
}
repositories {
google()
jcenter()
maven { url "https://plugins.gradle.org/m2/" }
maven { url "http://oss.sonatype.org/content/repositories/snapshots" }
}
dependencies {
classpath "com.github.triplet.gradle:play-publisher:$play_publisher"
classpath "com.android.tools.build:gradle:${android_gradle_plugin}"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "org.jmailen.gradle:kotlinter-gradle:$kotlinter"
classpath "androidx.navigation:navigation-safe-args-gradle-plugin:$navigation"
classpath "com.google.dagger:hilt-android-gradle-plugin:$hilt_dagger"
classpath 'com.google.gms:google-services:4.3.4'
classpath 'com.google.firebase:firebase-crashlytics-gradle:2.4.1'
}
}
allprojects {
repositories {
google()
jcenter()
maven { url "https://plugins.gradle.org/m2/" }
maven { url "http://oss.sonatype.org/content/repositories/snapshots" }
maven { url "https://jitpack.io" }
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
subprojects { evaluateProject ->
if (!evaluateProject.toString().contains('instagram') && !evaluateProject.toString().contains('toolkit')) {
tasks.whenTaskAdded {
if (name == 'preBuild') {
mustRunAfter 'lintKotlin'
}
}
}
}
apply from: "versioning.gradle"