-
Notifications
You must be signed in to change notification settings - Fork 29
/
build.gradle
49 lines (41 loc) · 1018 Bytes
/
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
buildscript {
ext.kotlin_version = '1.3.21'
repositories {
jcenter()
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.2.1'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
allprojects {
repositories {
jcenter()
maven {
url "https://maven.google.com"
}
}
}
apply plugin: "idea"
@SuppressWarnings("GroovyUnusedDeclaration")
static def getSecrets() {
try {
// load in default file
Properties secrets = new Properties()
secrets.load(new FileInputStream(new File('secrets.properties')))
// fix keystore path
secrets['KEYSTORE_PATH'] = new File('.').absolutePath + '/' + secrets['KEYSTORE_PATH']
return secrets
} catch (Exception ignored) {
System.out.println("Warning: secrets file not loaded")
return new Properties()
}
}
@SuppressWarnings("GroovyUnusedDeclaration")
static def getProps() {
Properties properties = new Properties()
properties['version_code'] = 22
properties['version_name'] = '2.5.0'
return properties
}