-
Notifications
You must be signed in to change notification settings - Fork 74
/
build.gradle
55 lines (46 loc) · 1.33 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
buildscript {
group = 'io.michaelrocks'
version = '8.13.48'
ext.projectCompileSdkVersion = 35
ext.projectBuildToolsVersion = '35.0.0'
ext.projectMinSdkVersion = 14
ext.projectTargetSdkVersion = 35
ext.androidToolsVersion = '8.7.0'
ext.junitVersion = '4.13.2'
ext.mockitoVersion = '5.14.1'
ext.androidxEspressoVersion = '3.6.1'
ext.androidxTestRulesVersion = '1.6.1'
ext.androidxTestRunnerVersion = '1.6.2'
ext.androidxTestExtJunitVersion = '1.2.1'
repositories {
google()
mavenCentral()
}
dependencies {
classpath "com.android.tools.build:gradle:$androidToolsVersion"
}
}
allprojects {
repositories {
google()
mavenCentral()
}
}
task clean(type: Delete) {
delete rootProject.layout.buildDirectory
}
allprojects { project ->
def publishPropertiesFile = rootProject.file('publish.properties')
if (publishPropertiesFile.exists()) {
def localProperties = new Properties()
publishPropertiesFile.withInputStream { stream -> localProperties.load(stream) }
localProperties.each { property ->
if (property.key == "signing.secretKeyRingFile") {
// If this is the key ring, treat it as a relative path
project.ext.set(property.key, rootProject.file(property.value).absolutePath)
} else {
project.ext.set(property.key, property.value)
}
}
}
}