-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
40 lines (34 loc) · 1.11 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
import org.gradle.util.VersionNumber
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
google()
mavenCentral()
maven { url "https://mirrors.tencent.com/nexus/repository/maven-public/" }
maven { url "https://plugins.gradle.org/m2/" }
}
dependencies {
VersionNumber currentGradleVersion = VersionNumber.parse(gradle.gradleVersion)
if (currentGradleVersion.major >= 8) {
classpath 'com.android.tools.build:gradle:8.0.2'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.0"
} else {
classpath 'com.android.tools.build:gradle:4.2.1'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.6.10"
}
// delete it without offline push function
classpath 'com.google.gms:google-services:4.3.15'
}
}
allprojects {
repositories {
flatDir {
dirs project(':app').file('libs')
}
google()
mavenCentral()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}