mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-27 11:42:16 -05:00
Support reading signing config values from Gradle properties
This commit is contained in:
parent
87acbb7cac
commit
270160e65a
23
build.gradle
23
build.gradle
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user