1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-23 18:02:15 -05:00

Support reading signing config values from Gradle properties

This commit is contained in:
cketti 2014-10-07 21:40:25 -04:00
parent 87acbb7cac
commit 270160e65a

View File

@ -60,6 +60,16 @@ android {
}
}
signingConfigs {
release
}
buildTypes {
release {
signingConfig signingConfigs.release
}
}
// Do not abort build if lint finds errors
lintOptions {
abortOnError false
@ -86,3 +96,16 @@ task testsOnJVM(type: GradleBuild, dependsOn: assemble) {
buildFile = 'tests-on-jvm/build.gradle'
tasks = ['test']
}
if (project.hasProperty('keyAlias')) {
android.signingConfigs.release.keyAlias = keyAlias
}
if (project.hasProperty('keyPassword')) {
android.signingConfigs.release.keyPassword = keyPassword
}
if (project.hasProperty('storeFile')) {
android.signingConfigs.release.storeFile = file(storeFile)
}
if (project.hasProperty('storePassword')) {
android.signingConfigs.release.storePassword = storePassword
}