-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathbuild.gradle
39 lines (32 loc) · 1.08 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
ext {
espressoCoreVersion = '3.4.0'
}
buildscript {
apply from: 'versions.gradle'
repositories {
google()
mavenCentral()
maven { url 'https://plugins.gradle.org/m2/' }
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-allopen:$kotlinVersion"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinGradlePluginVersion"
classpath "com.android.tools.build:gradle:$gradleVersion"
classpath "com.google.dagger:hilt-android-gradle-plugin:$hiltVersion"
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
Properties localProperties = new Properties()
File localPropertiesFile = file('local.properties')
localProperties.load(new FileInputStream(localPropertiesFile))
localProperties.each {
getProject().ext.setProperty(it.key, it.value)
}
def keystorePropertiesFile = rootProject.file("defaults.properties")
def defaultsProperties = new Properties()
defaultsProperties.load(new FileInputStream(keystorePropertiesFile))
defaultsProperties.each {
getProject().ext.setProperty(it.key, it.value)
}