-
Notifications
You must be signed in to change notification settings - Fork 14
/
build.gradle
48 lines (40 loc) · 1.61 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
buildscript {
ext.kotlin_version = '1.9.21'
repositories {
google()
mavenCentral()
}
dependencies {
// in below line we are adding configurations to our project.
configurations.all {
// in below line we are adding strategy for each dependency and requesting the details
resolutionStrategy.eachDependency {details ->
// on below line we are getting to see the details using requested.
def requested = details.requested
// in below line we are requesting a group.
if (requested.group == 'com.android.support'){
// on below line we are checking if the request is a group and checking if it starts with com.android.support.
if(!requested.name.startsWith("multidex")){
// if the requested name starts with multi dex then we are displaying the use version which is given below.
details.useVersion '25.3.0'
}
}
}
}
classpath 'com.android.tools.build:gradle:8.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
classpath 'com.google.gms:google-services:4.4.2'
classpath 'com.google.firebase:firebase-crashlytics-gradle:2.9.9'
}
}
allprojects {
repositories {
google()
mavenCentral()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}