-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
70 lines (60 loc) · 2.21 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
// Top-level build file where you can add configuration options common to all sub-projects/modules.
ext {
// material
def materialVersion = '1.4.0'
// androidX
def coreVersion = '1.7.0'
def appcompatVersion = '1.4.0'
def constraintLayoutVersion = '2.1.2'
// retrofit
def retrofitVersion = '2.9.0'
def okhttpVersion = '4.9.3'
def gsonVersion = '2.8.9'
// test
def junitVersion = '4.13.2'
def extJunitVersion = '1.1.3'
def espressoVersion = '3.4.0'
deps = [
material: "com.google.android.material:material:$materialVersion",
androidX: [
core : "androidx.core:core-ktx:$coreVersion",
appcompat : "androidx.appcompat:appcompat:$appcompatVersion",
constraintLayout: "androidx.constraintlayout:constraintlayout:$constraintLayoutVersion"
],
retrofit: [
retrofit : "com.squareup.retrofit2:retrofit:$retrofitVersion",
gsonConvertor: "com.squareup.retrofit2:converter-gson:$retrofitVersion"
],
okhttp : [
loggingInterceptor: "com.squareup.okhttp3:logging-interceptor:$okhttpVersion"
],
gson : "com.google.code.gson:gson:$gsonVersion",
test : [
junit : "junit:junit:$junitVersion",
extJunit: "androidx.test.ext:junit:$extJunitVersion",
espresso: "androidx.test.espresso:espresso-core:$espressoVersion"
]
]
androidConfig = [
compileSdk: 31,
minSdk : 26,
targetSdk : 31
]
}
buildscript {
def androidGradlePluginVersion = '7.0.3'
def kotlinGradlePluginVersion = '1.6.10'
repositories {
google()
mavenCentral()
}
dependencies {
classpath "com.android.tools.build:gradle:$androidGradlePluginVersion"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinGradlePluginVersion"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}