-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
101 lines (88 loc) · 4.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
101
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext {
kotlin_version = "1.5.0"
// Dependency Injection for Android Applications
// https://dagger.dev/hilt/gradle-setup
hilt_version = "2.35.1"
}
repositories {
google()
jcenter() // Add the Bintray repository
mavenCentral()
// Gradle Plugin for Ktlint
// https://github.com/jlleitschuh/ktlint-gradle#ktlint-plugin
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath "com.android.tools.build:gradle:4.2.1"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
// https://dagger.dev/hilt/
classpath "com.google.dagger:hilt-android-gradle-plugin:$hilt_version"
// https://github.com/jlleitschuh/ktlint-gradle#supported-kotlin-plugins
classpath "org.jlleitschuh.gradle:ktlint-gradle:9.2.1"
}
}
allprojects {
repositories {
google()
mavenCentral()
jcenter() // Warning: this repository is going to shut down soon
}
}
ext {
// SDK Level and Tools
// https://source.android.com/setup/start/build-numbers
// -----------------------------------------------------
androidMinSdkVersion = 22 // Lollipop 5.1
androidTargetSdkVersion = 30 // Android 10
androidCompileSdkVersion = 30
buildToolsVersion = '30.0.3' // Android SDK Build Tools - Versions: https://developer.android.com/studio/releases/build-tools.html
// Google Products & Support library dependencies
// AndroidX Versions: https://developer.android.com/jetpack/androidx/versions
// -----------------------------------------------------
androidMultiDex = "2.0.1"
appCompatVersion = '1.2.0' // https://developer.android.com/jetpack/androidx/releases/appcompat
constraintLayoutVersion = '1.1.3' // https://developer.android.com/reference/android/support/constraint/ConstraintLayout
archComponentVersion = '2.1.0' // https://developer.android.com/topic/libraries/architecture/adding-components
lifecycleVersion = '2.2.0' // https://developer.android.com/jetpack/androidx/releases/lifecycle
firebaseBomVersion = '26.1.1' // https://firebase.google.com/docs/android/setup
coreKtxVersion = '1.3.2' // https://developer.android.com/jetpack/androidx/releases/core
androidMaterialVersion = '1.3.0-beta01' // https://github.com/material-components/material-components-android/releases
viewPager2Version = '1.0.0' // https://developer.android.com/jetpack/androidx/releases/viewpager2
androidXHilt = '1.0.0-alpha01' // https://developer.android.com/jetpack/androidx/releases/hilt
workManager = '2.4.0' // https://developer.android.com/topic/libraries/architecture/workmanager/basics
roomVersion = "2.2.6" // https://developer.android.com/jetpack/androidx/releases/room
navigationVersion = '2.3.4'
// 3rd Parties Libraries
// -----------------------------------------------------
glideVersion = "4.11.0"
lottieVersion = '3.5.0'
retrofitVersion = '2.9.0' // https://square.github.io/retrofit/
okHttpVersion = '4.7.2' // https://github.com/square/okhttp
timberLibraryVersion = '4.7.1' // https://github.com/JakeWharton/timber
shimmerVersion = '0.5.0' // https://github.com/facebook/shimmer-android
youtubePlayerVersion = '10.0.5' // https://github.com/PierfrancescoSoffritti/android-youtube-player
// Testing
// -----------------------------------------------------
// Unit Test
junit = "4.13.1"
mockitoCore = "3.3.3"
mockK = "1.10.5"
kaspresso = "1.2.0"
// Android Test
androidTestCore = "1.3.0"
androidTestRunner = "1.3.0"
androidTestRules = "1.3.0"
androidTestExtJunit = "1.1.2"
androidTestEspressoCore = "3.3.0"
daggerHiltTesting = "2.35"
androidFragmentTesting = "1.2.5"
}
task clean(type: Delete) {
delete rootProject.buildDir
}