File tree Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -11,16 +11,39 @@ android {
11
11
versionName " 1.0"
12
12
testInstrumentationRunner " android.support.test.runner.AndroidJUnitRunner"
13
13
}
14
+ signingConfigs {
15
+ release
16
+ }
14
17
buildTypes {
15
18
release {
16
19
minifyEnabled false
17
20
proguardFiles getDefaultProguardFile(' proguard-android.txt' ), ' proguard-rules.pro'
21
+ signingConfig signingConfigs. release
18
22
}
19
23
}
20
24
lintOptions {
21
25
abortOnError true
22
26
warningsAsErrors true
23
27
}
28
+ def Properties props = new Properties ()
29
+ def propFile = new File (' /Users/jenkins/jenkins_static/duckduckgo_android/ddg_android_build.properties' )
30
+ if (propFile. exists()){
31
+ props. load(new FileInputStream (propFile))
32
+
33
+ if (props!= null && props. containsKey(' key.store' ) && props. containsKey(' key.store.password' ) &&
34
+ props. containsKey(' key.alias' ) && props. containsKey(' key.alias.password' )) {
35
+ android. signingConfigs. release. storeFile = file(props[' key.store' ])
36
+ android. signingConfigs. release. storePassword = props[' key.store.password' ]
37
+ android. signingConfigs. release. keyAlias = props[' key.alias' ]
38
+ android. signingConfigs. release. keyPassword = props[' key.alias.password' ]
39
+ } else {
40
+ println ' signing.properties found but some entries are missing'
41
+ android. buildTypes. release. signingConfig = null
42
+ }
43
+ } else {
44
+ println ' signing.properties not found'
45
+ android. buildTypes. release. signingConfig = null
46
+ }
24
47
}
25
48
26
49
ext. supportLibraryVersion = ' 25.3.1'
You can’t perform that action at this time.
0 commit comments