-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathsettings.gradle
32 lines (30 loc) · 1004 Bytes
/
settings.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
include ':app', ':mailsender', ':video-cache', ':IjkLib'
def initSignatureInfo() {
gradle.ext.keyAlias = ""
gradle.ext.keyPassword = ""
gradle.ext.storePassword = ""
File signFile = null
if (IS_JENKINS == "true") {
gradle.ext.storeFile = "/Library/KeyStore"
signFile = new File("/Library/KeyStore/keystore.properties")
} else {
gradle.ext.storeFile = ""
signFile = new File("keystore.properties")
println("init keystore : " + signFile.exists())
}
if (signFile.exists()) {
Properties p = new Properties()
signFile.withInputStream { stream ->
p.load(stream)
}
gradle.ext.keyAlias = p.keyAlias
gradle.ext.keyPassword = p.keyPassword
gradle.ext.storeFile = p.storeFile
gradle.ext.storePassword = p.storePassword
}
}
def initEnvironment() {
gradle.ext.outDir = rootProject.getProjectDir().getAbsolutePath() + "/output"
}
initEnvironment()
initSignatureInfo()